[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - cDocumentTemplate.c:1.48
Shane Hathaway
shane@cvs.zope.org
Mon, 5 Aug 2002 16:51:15 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv11194
Modified Files:
cDocumentTemplate.c
Log Message:
The function failed to reinitialize skip_html_quote at the beginning of
each loop, making cDocumentTemplate html_quote only the first dtml-var,
if at all.
This may expose more bugs in the dtml-var tainting. I'm not to blame. ;-)
=== Zope/lib/python/DocumentTemplate/cDocumentTemplate.c 1.47 => 1.48 ===
{
PyObject *block, *t, *args;
int l, i, k=0, append;
- int skip_html_quote = 0;
+ int skip_html_quote;
if ((l=PyList_Size(blocks)) < 0) return -1;
for (i=0; i < l; i++)
@@ -690,6 +690,7 @@
if (t == NULL) return -1;
+ skip_html_quote = 0;
if (! ( PyString_Check(t) || PyUnicode_Check(t) ) )
{
/* This might be a TaintedString object */