< prev index next >
modules/javafx.web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/documents.c
Print this page
rev 11312 : 8227402: Improve XSLT processing
Reviewed-by: kcr, rhalade
@@ -294,11 +294,12 @@
*/
if (ctxt->sec != NULL) {
int res;
res = xsltCheckRead(ctxt->sec, ctxt, URI);
- if (res == 0) {
+ if (res <= 0) {
+ if (res == 0)
xsltTransformError(ctxt, NULL, NULL,
"xsltLoadDocument: read rights for %s denied\n",
URI);
return(NULL);
}
@@ -370,11 +371,12 @@
sec = xsltGetDefaultSecurityPrefs();
if (sec != NULL) {
int res;
res = xsltCheckRead(sec, NULL, URI);
- if (res == 0) {
+ if (res <= 0) {
+ if (res == 0)
xsltTransformError(NULL, NULL, NULL,
"xsltLoadStyleDocument: read rights for %s denied\n",
URI);
return(NULL);
}
< prev index next >