Skip to content
Snippets Groups Projects
Commit a9e2a7bebfb9 authored by Martin's avatar Martin
Browse files

Crash compiling stylesheet with DTD

* libxslt/xslt.c: when a stylesheet embbeds a DTD the compilation
  process could get seriously wrong
parent 131473d640ee
Branches
No related tags found
No related merge requests found
......@@ -4940,8 +4940,10 @@
* okay this is an extension element compile it too
*/
xsltStylePreCompute(style, cur);
} else {
}
else if (cur->type == XML_ELEMENT_NODE)
{
/*
* This is an element which will be output as part of the
* template exectution, precompile AVT if found.
*/
......@@ -4944,9 +4946,8 @@
/*
* This is an element which will be output as part of the
* template exectution, precompile AVT if found.
*/
if ((cur->ns == NULL) && (style->defaultAlias != NULL) &&
(cur->type == XML_ELEMENT_NODE)) {
if ((cur->ns == NULL) && (style->defaultAlias != NULL)) {
cur->ns = xmlSearchNsByHref(cur->doc, cur,
style->defaultAlias);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment