Skip to content

Commit

Permalink
Fix rendering of object paths with URL characters (#38)
Browse files Browse the repository at this point in the history
* Fix rendering of object paths with URL characters

* Fix pylint
  • Loading branch information
c-w authored Nov 18, 2019
1 parent 32cfb22 commit 5d60c02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloud_browser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
except ImportError:
from importlib import import_module

try:
from urllib.parse import unquote_to_bytes as unquote
except ImportError:
from urllib import unquote


MAX_LIMIT = get_connection_cls().cont_cls.max_list

Expand Down Expand Up @@ -106,6 +111,7 @@ def browser(request, path="", template="cloud_browser/browser.html"):
from builtins import filter

# Inputs.
path = unquote(path).decode("utf-8").replace("+", " ")
container_path, object_path = path_parts(path)
incoming = request.POST or request.GET or {}

Expand Down
1 change: 1 addition & 0 deletions dev/pylint.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ disable =
bad-continuation,
duplicate-code,
fixme,
import-outside-toplevel,
missing-docstring,
no-else-raise,
no-else-return,
Expand Down

0 comments on commit 5d60c02

Please sign in to comment.