From f1aa11d3c90925a0ecc4f7db2df571aabf99fc3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Wed, 3 Mar 2010 09:27:17 +0100 Subject: [PATCH] More fixes in Filebrowser. --- apps/filebrowser/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/filebrowser/views.py b/apps/filebrowser/views.py index b507a75f..32f79c22 100644 --- a/apps/filebrowser/views.py +++ b/apps/filebrowser/views.py @@ -17,7 +17,7 @@ from django.core.urlresolvers import reverse from django.core.exceptions import ImproperlyConfigured from django.dispatch import Signal -from django.utils.encoding import smart_unicode +from django.utils.encoding import smart_unicode, smart_str # filebrowser imports from filebrowser.fb_settings import * @@ -76,7 +76,7 @@ def browse(request): results_var['results_total'] += 1 # CREATE FILEOBJECT - fileobject = FileObject(os.path.join(DIRECTORY, path, file)) + fileobject = FileObject(os.path.join(smart_str(DIRECTORY), smart_str(path), smart_str(file))) # FILTER / SEARCH append = False -- 2.20.1