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

applied fix from Shane Corgatelli to pass the full URL when checking

* libxslt/security.c: applied fix from Shane Corgatelli to pass
  the full URL when checking security access for network URLs,
  should fix bug #359366
Daniel
parent d71a4d725864
No related branches found
No related tags found
No related merge requests found
Wed Oct 11 09:55:06 CEST 2006 Daniel Veillard <daniel@veillard.com>
* libxslt/security.c: applied fix from Shane Corgatelli to pass
the full URL when checking security access for network URLs,
should fix bug #359366
Mon Aug 21 10:46:25 CEST 2006 Daniel Veillard <daniel@veillard.com> Mon Aug 21 10:46:25 CEST 2006 Daniel Veillard <daniel@veillard.com>
* doc/xslt.html python/tests/pyxsltproc.py xsltproc/xsltproc.c: * doc/xslt.html python/tests/pyxsltproc.py xsltproc/xsltproc.c:
...@@ -10,7 +16,7 @@ ...@@ -10,7 +16,7 @@
* xsltproc/xsltproc.c: --xinclude should also force XInclude * xsltproc/xsltproc.c: --xinclude should also force XInclude
processing on the stylesheets themselves, raised by Daniel Leidert processing on the stylesheets themselves, raised by Daniel Leidert
Thu Aug 10 15:54:02 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net Thu Aug 10 15:54:02 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net>
* libxslt/transform.c libxslt/variables.c * libxslt/transform.c libxslt/variables.c
libxslt/xsltInternals.h: Fixed restoring the context doc libxslt/xsltInternals.h: Fixed restoring the context doc
......
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
*/ */
check = xsltGetSecurityPrefs(sec, XSLT_SECPREF_WRITE_NETWORK); check = xsltGetSecurityPrefs(sec, XSLT_SECPREF_WRITE_NETWORK);
if (check != NULL) { if (check != NULL) {
ret = check(sec, ctxt, uri->path); ret = check(sec, ctxt, (const char *)URL);
if (ret == 0) { if (ret == 0) {
xsltTransformError(ctxt, NULL, NULL, xsltTransformError(ctxt, NULL, NULL,
"File write for %s refused\n", URL); "File write for %s refused\n", URL);
...@@ -420,7 +420,7 @@ ...@@ -420,7 +420,7 @@
*/ */
check = xsltGetSecurityPrefs(sec, XSLT_SECPREF_READ_NETWORK); check = xsltGetSecurityPrefs(sec, XSLT_SECPREF_READ_NETWORK);
if (check != NULL) { if (check != NULL) {
ret = check(sec, ctxt, uri->path); ret = check(sec, ctxt, (const char *)URL);
if (ret == 0) { if (ret == 0) {
xsltTransformError(ctxt, NULL, NULL, xsltTransformError(ctxt, NULL, NULL,
"Network file read for %s refused\n", URL); "Network file read for %s refused\n", URL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment