Removed
Link Here
|
1 |
--- libxslt/documents.c.orig 2015-05-10 14:11:29 UTC |
2 |
+++ libxslt/documents.c |
3 |
@@ -296,10 +296,11 @@ xsltLoadDocument(xsltTransformContextPtr ctxt, const x |
4 |
int res; |
5 |
|
6 |
res = xsltCheckRead(ctxt->sec, ctxt, URI); |
7 |
- if (res == 0) { |
8 |
- xsltTransformError(ctxt, NULL, NULL, |
9 |
- "xsltLoadDocument: read rights for %s denied\n", |
10 |
- URI); |
11 |
+ if (res <= 0) { |
12 |
+ if (res == 0) |
13 |
+ xsltTransformError(ctxt, NULL, NULL, |
14 |
+ "xsltLoadDocument: read rights for %s denied\n", |
15 |
+ URI); |
16 |
return(NULL); |
17 |
} |
18 |
} |
19 |
@@ -372,10 +373,11 @@ xsltLoadStyleDocument(xsltStylesheetPtr style, const x |
20 |
int res; |
21 |
|
22 |
res = xsltCheckRead(sec, NULL, URI); |
23 |
- if (res == 0) { |
24 |
- xsltTransformError(NULL, NULL, NULL, |
25 |
- "xsltLoadStyleDocument: read rights for %s denied\n", |
26 |
- URI); |
27 |
+ if (res <= 0) { |
28 |
+ if (res == 0) |
29 |
+ xsltTransformError(NULL, NULL, NULL, |
30 |
+ "xsltLoadStyleDocument: read rights for %s denied\n", |
31 |
+ URI); |
32 |
return(NULL); |
33 |
} |
34 |
} |