# HG changeset patch # User RhodeCode Admin # Date 2021-12-17 07:24:00 # Node ID b599af67f2ab686ece546d544e2525aa33d420ed # Parent 28ed66c7656ccc7972a3548466d288d065609170 files: escape special chars for metadata loading to prevent breaking url with chars like #, <. - fixes #5672 diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -337,11 +337,13 @@ def files_breadcrumbs(repo_name, repo_ty def files_url_data(request): + import urllib matchdict = request.matchdict if 'f_path' not in matchdict: matchdict['f_path'] = '' - + else: + matchdict['f_path'] = urllib.quote(matchdict['f_path']) if 'commit_id' not in matchdict: matchdict['commit_id'] = 'tip'