Skip to content

Commit ae74e23

Browse files
committed
SWS-459
1 parent 13a4bf9 commit ae74e23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xml/src/main/java/org/springframework/xml/sax/SaxUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package org.springframework.xml.sax;
1818

1919
import java.io.IOException;
20+
import java.net.URI;
2021
import java.net.URISyntaxException;
2122

2223
import org.xml.sax.InputSource;
@@ -50,7 +51,7 @@ public static InputSource createInputSource(Resource resource) throws IOExceptio
5051
/** Retrieves the URL from the given resource as System ID. Returns <code>null</code> if it cannot be openened. */
5152
public static String getSystemId(Resource resource) {
5253
try {
53-
return resource.getURL().toURI().toString();
54+
return new URI(resource.getURL().toExternalForm()).toString();
5455
}
5556
catch (IOException e) {
5657
return null;

0 commit comments

Comments
 (0)