[jToolkit-cvs] jToolkit/widgets widgets.py,1.9,1.10
Brought to you by:
davidfraser,
friedelwolff
From: <dav...@us...> - 2004-02-09 14:10:12
|
Update of /cvsroot/jtoolkit/jToolkit/widgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9284 Modified Files: widgets.py Log Message: improved escaping of refreshurl (only need to escape spaces) Index: widgets.py =================================================================== RCS file: /cvsroot/jtoolkit/jToolkit/widgets/widgets.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** widgets.py 9 Feb 2004 13:47:31 -0000 1.9 --- widgets.py 9 Feb 2004 14:06:58 -0000 1.10 *************** *** 24,29 **** # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - import urllib - class Widget: def __init__(self, tagname = "widget"): --- 24,27 ---- *************** *** 248,255 **** else: # TODO: check out the URL escaping more thoroughly... ! if '?' in refreshurl: ! # escape query as spaces problems when refreshing... ! querystart = refreshurl.find('?')+1 ! refreshurl = refreshurl[:querystart] + urllib.quote(refreshurl[querystart:]) result += """<meta http-equiv="Refresh" content="%d; URL=%s">""" % (refresh, refreshurl) # stylesheet info --- 246,251 ---- else: # TODO: check out the URL escaping more thoroughly... ! # escape query as spaces cause problems when refreshing... ! refreshurl = refreshurl.replace(' ','%20') result += """<meta http-equiv="Refresh" content="%d; URL=%s">""" % (refresh, refreshurl) # stylesheet info |