[Zope-Checkins] CVS: Zope/lib/python/Products/ZCTextIndex - ZCTextIndex.py:1.31

Martijn Pieters mj@zope.com
Mon, 5 Aug 2002 17:30:57 -0400


Update of /cvs-repository/Zope/lib/python/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv19133

Modified Files:
	ZCTextIndex.py 
Log Message:
Escape the other REQUEST-sourced value as well.

=== Zope/lib/python/Products/ZCTextIndex/ZCTextIndex.py 1.30 => 1.31 ===
 
         if index_factory is None:
             if extra.index_type not in index_types.keys():
-                raise ValueError, 'Invalid index type "%s"' % extra.index_type
+                raise ValueError, 'Invalid index type "%s"' % escape(
+                    extra.index_type)
             self._index_factory = index_types[extra.index_type]
             self._index_type = extra.index_type
         else: