You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dl...@apache.org on 2001/10/11 17:51:15 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/transformer TransformerImpl.java
dleslie 01/10/11 08:51:15
Modified: java/src/org/apache/xalan/transformer TransformerImpl.java
Log:
Put try/catch block around System.getProperty("user.dir") call. If
SecurityException occurs (from applet sandbox), supply an
empty string ("").
Revision Changes Path
1.115 +6 -2 xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java
Index: TransformerImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -r1.114 -r1.115
--- TransformerImpl.java 2001/08/09 18:29:05 1.114
+++ TransformerImpl.java 2001/10/11 15:51:14 1.115
@@ -615,8 +615,12 @@
// As a last resort, use the current user dir.
if(null == base)
{
- String currentDir = System.getProperty("user.dir");
-
+ String currentDir = "";
+ try {
+ currentDir = System.getProperty("user.dir");
+ }
+ catch (SecurityException se) {}// user.dir not accessible from applet
+
if (currentDir.startsWith(java.io.File.separator))
base = "file://" + currentDir;
else
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org