# HG changeset patch # User Mads Kiilerich # Date 1433604262 -7200 # Node ID 0e03fb3384df11a385170e0203fcfc0c4c3f5a54 # Parent c44885d0e546303772771141418c5c7d91e0180c repos: fix superfluous escaping of urlified URLs in repo descriptions The h.escape usage introduced in a8f2986afc18 was too aggressive and magic. diff -r c44885d0e546 -r 0e03fb3384df kallithea/model/repo.py --- a/kallithea/model/repo.py Fri May 22 23:56:50 2015 +0200 +++ b/kallithea/model/repo.py Sat Jun 06 17:24:22 2015 +0200 @@ -210,9 +210,9 @@ def desc(desc): if c.visual.stylify_metatags: - return h.urlify_text(h.desc_stylize(h.escape(h.truncate(desc, 60)))) + return h.urlify_text(h.desc_stylize(h.html_escape(h.truncate(desc, 60)))) else: - return h.urlify_text(h.escape(h.truncate(desc, 60))) + return h.urlify_text(h.html_escape(h.truncate(desc, 60))) def state(repo_state): return _render("repo_state", repo_state) diff -r c44885d0e546 -r 0e03fb3384df kallithea/templates/summary/summary.html --- a/kallithea/templates/summary/summary.html Fri May 22 23:56:50 2015 +0200 +++ b/kallithea/templates/summary/summary.html Sat Jun 06 17:24:22 2015 +0200 @@ -85,9 +85,9 @@ %if c.visual.stylify_metatags: -
${h.urlify_text(h.desc_stylize(h.escape(c.db_repo.description)))}
+
${h.urlify_text(h.desc_stylize(h.html_escape(c.db_repo.description)))}
%else: -
${h.urlify_text(h.escape(c.db_repo.description))}
+
${h.urlify_text(h.html_escape(c.db_repo.description))}
%endif