summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-10-28 04:51:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-28 04:51:21 +0000
commitce8a93585b71d80730020e0cd945442b05dd606b (patch)
tree35eb1a09d0b8774009050768c365f7398d3bbff1
parentb0f2efae3fd1c205c8b72f16f8377e09da7e170c (diff)
parentb6f1a009193f13433cc8b00f27b84733845f3a4d (diff)
downloadapache-xml-ce8a93585b71d80730020e0cd945442b05dd606b.tar.gz
am b6f1a009: Merge "Adjustment to patch for secure processing for CVE-2014-0107 by Ryan Berg based on feedack from Emmanuel Bourg."android-wear-5.0.0_r1lollipop-wear-release
* commit 'b6f1a009193f13433cc8b00f27b84733845f3a4d': Adjustment to patch for secure processing for CVE-2014-0107 by Ryan Berg based on feedack from Emmanuel Bourg.
-rw-r--r--src/main/java/org/apache/xpath/functions/FuncSystemProperty.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/org/apache/xpath/functions/FuncSystemProperty.java b/src/main/java/org/apache/xpath/functions/FuncSystemProperty.java
index 2621d7a..0562311 100644
--- a/src/main/java/org/apache/xpath/functions/FuncSystemProperty.java
+++ b/src/main/java/org/apache/xpath/functions/FuncSystemProperty.java
@@ -101,13 +101,12 @@ public class FuncSystemProperty extends FunctionOneArg
//if secure procession is enabled only handle required properties do not not map any valid system property
if(!xctxt.isSecureProcessing())
{
- result = System.getProperty(fullName);
+ result = System.getProperty(propName);
}
else
{
warn(xctxt, XPATHErrorResources.WG_SECURITY_EXCEPTION,
new Object[]{ fullName }); //"SecurityException when trying to access XSL system property: "+fullName);
- result = xsltInfo.getProperty(propName);
}
if (null == result)
{
@@ -136,7 +135,6 @@ public class FuncSystemProperty extends FunctionOneArg
{
warn(xctxt, XPATHErrorResources.WG_SECURITY_EXCEPTION,
new Object[]{ fullName }); //"SecurityException when trying to access XSL system property: "+fullName);
- result = xsltInfo.getProperty(propName);
}
if (null == result)
{