* libxslt/transform.c: added check in xsltCopyText to assure
content is in dictionary before doing a straight copy of
content (bug 302821)
+Tue Jul 13 22:41:03 PDT 2005 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/transform.c: added check in xsltCopyText to assure
+ content is in dictionary before doing a straight copy of
+ content (bug 302821)
+
Tue Jul 13 16:16:31 PDT 2005 William Brack <wbrack@mmm.com.hk>
* libxslt/transform.c: fixed to set current default value for
return NULL;
if (cur->name == xmlStringTextNoenc)
copy->name = xmlStringTextNoenc;
- copy->content = cur->content;
+ /*
+ * Must confirm that content is in dict
+ * (bug 302821)
+ */
+ if (xmlDictOwns(ctxt->dict, cur->content))
+ copy->content = cur->content;
+ else {
+ if ((copy->content = xmlStrdup(cur->content)) == NULL)
+ return NULL;
+ }
} else {
/*
* normal processing. keep counters to extend the text node