You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2004/02/19 21:32:08 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge BaseScriptingEnvironment.java
vhardy 2004/02/19 12:32:08
Modified: sources/org/apache/batik/bridge
BaseScriptingEnvironment.java
Log:
Added missing script origin check
Revision Changes Path
1.28 +4 -1 xml-batik/sources/org/apache/batik/bridge/BaseScriptingEnvironment.java
Index: BaseScriptingEnvironment.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/BaseScriptingEnvironment.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- BaseScriptingEnvironment.java 9 Aug 2003 16:58:37 -0000 1.27
+++ BaseScriptingEnvironment.java 19 Feb 2004 20:32:07 -0000 1.28
@@ -420,15 +420,18 @@
String href = XLinkSupport.getXLinkHref(script);
String desc = null;
Reader reader;
+
if (href.length() > 0) {
desc = href;
// External script.
ParsedURL purl = new ParsedURL
(XMLBaseSupport.getCascadedXMLBase(script), href);
+
checkCompatibleScriptURL(type, purl);
reader = new InputStreamReader(purl.openStream());
} else {
+ checkCompatibleScriptURL(type, docPURL);
DocumentLoader dl = bridgeContext.getDocumentLoader();
Element e = script;
SVGDocument d = (SVGDocument)e.getOwnerDocument();
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org