|
|
@@ -25,6 +25,7 @@ import posixpath
|
|
|
import re
|
|
|
import shutil
|
|
|
import stat as stat_module
|
|
|
+import urllib2
|
|
|
|
|
|
from datetime import datetime
|
|
|
|
|
|
@@ -163,6 +164,9 @@ def view(request, path):
|
|
|
return format_preserving_redirect(request, reverse(view, kwargs=dict(path=request.fs.trash_path)))
|
|
|
|
|
|
try:
|
|
|
+ decoded_path = urllib2.unquote(path).decode('utf8')
|
|
|
+ if path != decoded_path:
|
|
|
+ path = decoded_path
|
|
|
stats = request.fs.stats(path)
|
|
|
if stats.isDir:
|
|
|
return listdir_paged(request, path)
|