Skip to content
Snippets Groups Projects
Commit 99e8ac8decc6 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixed a problem related to directory checking and creation raised by Craig

* libxslt/transform.c: fixed a problem related to directory
  checking and creation raised by Craig Goss
Daniel
parent 264486a6436c
Branches
No related tags found
No related merge requests found
Wed Jan 8 12:33:47 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/transform.c: fixed a problem related to directory
checking and creation raised by Craig Goss
Thu Jan 2 23:23:30 CET 2003 Daniel Veillard <daniel@veillard.com>
* libexslt/strings.c: applied patch from Jrg Walter to provide
......
......@@ -3802,6 +3802,20 @@
xmlFreeDoc(res);
res = NULL;
}
if ((res != NULL) && (ctxt != NULL) && (output != NULL)) {
int ret;
ret = xsltCheckWrite(userCtxt->sec, userCtxt, output);
if (ret == 0) {
xsltTransformError(ctxt, NULL, NULL,
"xsltApplyStylesheet: forbidden to save to %s\n",
output);
} else if (ret < 0) {
xsltTransformError(ctxt, NULL, NULL,
"xsltApplyStylesheet: saving to %s may not be possible\n",
output);
}
}
if ((ctxt != NULL) && (userCtxt == NULL))
xsltFreeTransformContext(ctxt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment