SWS-459
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.springframework.xml.sax;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
|
||||
import org.xml.sax.InputSource;
|
||||
@@ -50,7 +51,7 @@ public abstract class SaxUtils {
|
||||
/** Retrieves the URL from the given resource as System ID. Returns <code>null</code> if it cannot be openened. */
|
||||
public static String getSystemId(Resource resource) {
|
||||
try {
|
||||
return resource.getURL().toURI().toString();
|
||||
return new URI(resource.getURL().toExternalForm()).toString();
|
||||
}
|
||||
catch (IOException e) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user