[pypy-svn] r79327 - pypy/build/bot2/pypybuildbot

fijal at codespeak.net fijal at codespeak.net
Mon Nov 22 08:05:51 CET 2010


Author: fijal
Date: Mon Nov 22 08:05:48 2010
New Revision: 79327

Modified:
   pypy/build/bot2/pypybuildbot/pypylist.py
Log:
Properly escape URLs


Modified: pypy/build/bot2/pypybuildbot/pypylist.py
==============================================================================
--- pypy/build/bot2/pypybuildbot/pypylist.py	(original)
+++ pypy/build/bot2/pypybuildbot/pypylist.py	Mon Nov 22 08:05:48 2010
@@ -3,6 +3,7 @@
 import itertools
 import re
 import py
+import cgi
 from twisted.web import resource
 from twisted.web.static import File, DirectoryLister
 
@@ -189,7 +190,7 @@
         if branch == 'trunk':
             branch = '%3Ctrunk%3E' # <trunk>
         if category:
-            href = '/summary?category=%s&branch=%s&recentrev=%s' % (category, branch, rev)
+            href = cgi.escape('/summary?category=%s&branch=%s&recentrev=%s' % (category, branch, rev))
             str_summary = '<a class="summary_link" href="%s">%s</a>' % (href, summary)
         else:
             str_summary = str(summary)



More information about the Pypy-commit mailing list