Browse Source

-fix for bug #42227

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@533024 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 18 years ago
parent
commit
991ce3f231
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/launch/Locator.java

+ 3
- 1
src/main/org/apache/tools/ant/launch/Locator.java View File

@@ -163,7 +163,8 @@ public final class Locator {
java.lang.reflect.Constructor fileConst
= File.class.getConstructor(new Class[] {uriClazz});
File f = (File) fileConst.newInstance(new Object[] {uriObj});
return f.getAbsolutePath();
//bug #42227 forgot to decode before returning
return decodeUri(f.getAbsolutePath());
} catch (java.lang.reflect.InvocationTargetException e) {
Throwable e2 = e.getTargetException();
if (e2 instanceof IllegalArgumentException) {
@@ -253,6 +254,7 @@ public final class Locator {
}
return sb.toString(URI_ENCODING);
}
/**
* Encodes an Uri with % characters.
* The URI is escaped


Loading…
Cancel
Save