[Zope-Checkins] CVS: Zope/lib/python/Products/StandardCacheManagers
- AcceleratedHTTPCacheManager.py:1.12 RAMCacheManager.py:1.11
Tres Seaver
tseaver at zope.com
Thu Jan 15 17:54:42 EST 2004
Update of /cvs-repository/Zope/lib/python/Products/StandardCacheManagers
In directory cvs.zope.org:/tmp/cvs-serv21847/StandardCacheManagers
Modified Files:
AcceleratedHTTPCacheManager.py RAMCacheManager.py
Log Message:
- Merge CGI escapes from 2.6 / 2.7 audit.
=== Zope/lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py 1.11 => 1.12 ===
--- Zope/lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py:1.11 Wed Aug 14 18:25:12 2002
+++ Zope/lib/python/Products/StandardCacheManagers/AcceleratedHTTPCacheManager.py Thu Jan 15 17:54:11 2004
@@ -24,6 +24,7 @@
import Globals
from Globals import DTMLFile
import urlparse, httplib
+from cgi import escape
from urllib import quote
from App.Common import rfc1123_date
@@ -213,7 +214,7 @@
if sort_by == id:
newsr = not sort_reverse
url = url + '&sort_reverse=' + (newsr and '1' or '0')
- return '<a href="%s">%s</a>' % (url, name)
+ return '<a href="%s">%s</a>' % (escape(url, 1), escape(name))
Globals.default__class_init__(AcceleratedHTTPCacheManager)
=== Zope/lib/python/Products/StandardCacheManagers/RAMCacheManager.py 1.10 => 1.11 ===
--- Zope/lib/python/Products/StandardCacheManagers/RAMCacheManager.py:1.10 Wed Aug 14 18:25:12 2002
+++ Zope/lib/python/Products/StandardCacheManagers/RAMCacheManager.py Thu Jan 15 17:54:11 2004
@@ -21,6 +21,7 @@
from OFS.Cache import Cache, CacheManager
from OFS.SimpleItem import SimpleItem
from thread import allocate_lock
+from cgi import escape
import time
import Globals
from Globals import DTMLFile
@@ -433,7 +434,7 @@
if sort_by == id:
newsr = not sort_reverse
url = url + '&sort_reverse=' + (newsr and '1' or '0')
- return '<a href="%s">%s</a>' % (url, name)
+ return '<a href="%s">%s</a>' % (escape(url, 1), escape(name))
Globals.default__class_init__(RAMCacheManager)
More information about the Zope-Checkins
mailing list