[Zope-Checkins] CVS: Packages/DocumentTemplate - cDocumentTemplate.c:1.41
Evan Simpson
evan@zope.com
Fri, 9 Nov 2001 16:37:10 -0500
Update of /cvs-repository/Packages/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv17114
Modified Files:
cDocumentTemplate.c
Log Message:
Fix html_quoting.
=== Packages/DocumentTemplate/cDocumentTemplate.c 1.40 => 1.41 ===
{
if (strchr(PyString_AS_STRING(t), '&')
- && strchr(PyString_AS_STRING(t), '<')
- && strchr(PyString_AS_STRING(t), '>')
- && strchr(PyString_AS_STRING(t), '"')
+ || strchr(PyString_AS_STRING(t), '<')
+ || strchr(PyString_AS_STRING(t), '>')
+ || strchr(PyString_AS_STRING(t), '"')
)
ASSIGN(t, PyObject_CallFunction(html_quote, "O", t));
if (t == NULL) return -1;