Commit 78f68acb authored by Vincent Pelletier's avatar Vincent Pelletier

Escape URLs.

parent 8f151042
......@@ -240,8 +240,8 @@ class GenericSiteStats(object):
append('<td>%s</td><td class="text">%s</td>'
'<td class="text">%s</td>' % (
getHitForUrl(referer_counter),
url,
'<br/>'.join('%i: %s' % (hit, referer) for referer, hit in sorted(
escape(url),
'<br/>'.join('%i: %s' % (hit, escape(referer)) for referer, hit in sorted(
referer_counter.iteritems(), key=ITEMGETTER1, reverse=True
)[:N_REFERRER_PER_ERROR_URL]),
))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment