pld-builder.new: PLD_Builder/request.py - quote url args

arekm arekm at pld-linux.org
Wed Mar 4 15:24:19 CET 2009


Author: arekm                        Date: Wed Mar  4 14:24:18 2009 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
- quote url args

---- Files affected:
pld-builder.new/PLD_Builder:
   request.py (1.61 -> 1.62) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/request.py
diff -u pld-builder.new/PLD_Builder/request.py:1.61 pld-builder.new/PLD_Builder/request.py:1.62
--- pld-builder.new/PLD_Builder/request.py:1.61	Wed Mar  4 08:51:45 2009
+++ pld-builder.new/PLD_Builder/request.py	Wed Mar  4 15:24:13 2009
@@ -6,6 +6,7 @@
 import xml.sax.saxutils
 import fnmatch
 import os
+import urllib
 
 import util
 import log
@@ -228,7 +229,7 @@
                     is_ok = 1
                 bld = lin_ar.split('-')
                 link_pre = "<a href=\"http://buildlogs.pld-linux.org/index.php?dist=%s&arch=%s&ok=%d&name=%s&id=%s\">" \
-                     % (bld[0], bld[1], is_ok, bl_name, rid)
+                     % (urllib.quote(bld[0]), urllib.quote(bld[1]), urllib.quote(is_ok), urllib.quote(bl_name), urllib.quote(rid))
                 link_post = "</a>"
             builders.append(link_pre + ("<font color='%s'><b>%s:%s</b></font>" %
                                         (c, b, s)) + link_post)
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/request.py?r1=1.61&r2=1.62&f=u



More information about the pld-cvs-commit mailing list