Commit 1501bb21 authored by Steinberg, Jan's avatar Steinberg, Jan
Browse files

urlvalidator does not work as wanted

parent b7dd5e3e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -281,7 +281,10 @@ public class ContentResolver {
        catch (UnsupportedEncodingException e) {
            log.warn("", e);
        }
        if ( URL_VALIDATOR.isValid(urlString) ) {
        // if ( URL_VALIDATOR.isValid(urlString) ) {
        // URL_VALIDATOR does not work correctly
        // ToDo: replace the following line with something appropriate
        if ( urlString.length() > 3 ) {
            try {
                String resolvedUrlString = ContentHelpers.resolvePossibleRedirects(urlString);
                
@@ -314,7 +317,7 @@ public class ContentResolver {
                }
            }
            catch (IOException e) {
                log.warn("Could not find InputStream for URL " + urlString, e);
                log.info("Could not find InputStream for URL " + urlString, e);
            }
        }