# HG changeset patch # User RhodeCode Admin # Date 2022-01-10 14:24:21 # Node ID 88359629bf7af9a2fa589b3a2141ac4bbe4f7e40 # Parent 8532c1caac4e1662ac99e2916febde7c9b4e7d9c files: fixed unicode problems in specially encoded paths handler. diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -343,7 +343,7 @@ def files_url_data(request): if 'f_path' not in matchdict: matchdict['f_path'] = '' else: - matchdict['f_path'] = urllib.quote(matchdict['f_path']) + matchdict['f_path'] = urllib.quote(safe_str(matchdict['f_path'])) if 'commit_id' not in matchdict: matchdict['commit_id'] = 'tip'