# HG changeset patch # User RhodeCode Admin # Date 2023-03-28 08:23:09 # Node ID 81bea8a2bf10d7fed2d64cfc4495d142258f6c00 # Parent c1b8a600ac5e5c469ab74c18d881aa5240d830e7 files: don't use safe_unicode calls diff --git a/rhodecode/templates/files/files.mako b/rhodecode/templates/files/files.mako --- a/rhodecode/templates/files/files.mako +++ b/rhodecode/templates/files/files.mako @@ -3,7 +3,7 @@ <%def name="title(*args)"> ${_('{} Files').format(c.repo_name)} %if hasattr(c,'file'): - · ${(h.safe_unicode(c.file.path) or '\\')} + · ${(h.safe_str(c.file.path) or '\\')} %endif %if c.rhodecode_name: diff --git a/rhodecode/templates/files/files_browser_tree.mako b/rhodecode/templates/files/files_browser_tree.mako --- a/rhodecode/templates/files/files_browser_tree.mako +++ b/rhodecode/templates/files/files_browser_tree.mako @@ -44,7 +44,7 @@ % endif % else: - + ${node.name} % endif diff --git a/rhodecode/templates/files/files_pjax.mako b/rhodecode/templates/files/files_pjax.mako --- a/rhodecode/templates/files/files_pjax.mako +++ b/rhodecode/templates/files/files_pjax.mako @@ -1,7 +1,7 @@ <%def name="title(*args)"> ${_('{} Files').format(c.repo_name)} %if hasattr(c,'file'): - · ${(h.safe_unicode(c.file.path) or '\\')} + · ${(h.safe_str(c.file.path) or '\\')} %endif %if c.rhodecode_name: