Skip to content

Commit

Permalink
The function failed to reinitialize skip_html_quote at the beginning of
Browse files Browse the repository at this point in the history
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. ;-)
  • Loading branch information
hathawsh committed Aug 5, 2002
1 parent 47e79c6 commit e482892
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cDocumentTemplate.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
****************************************************************************/
static char cDocumentTemplate_module_documentation[] =
""
"\n$Id: cDocumentTemplate.c,v 1.47 2002/08/01 16:00:39 mj Exp $"
"\n$Id: cDocumentTemplate.c,v 1.48 2002/08/05 20:51:14 shane Exp $"
;

#include "ExtensionClass.h"
Expand Down Expand Up @@ -665,7 +665,7 @@ render_blocks_(PyObject *blocks, PyObject *rendered,
{
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++)
Expand All @@ -690,6 +690,7 @@ render_blocks_(PyObject *blocks, PyObject *rendered,

if (t == NULL) return -1;

skip_html_quote = 0;
if (! ( PyString_Check(t) || PyUnicode_Check(t) ) )
{
/* This might be a TaintedString object */
Expand Down

0 comments on commit e482892

Please sign in to comment.