Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #2 from ox-it/WL-2295
Browse files Browse the repository at this point in the history
WL-2295 Fix URL handling of unencoded spaces
  • Loading branch information
buckett committed Nov 19, 2013
2 parents 904dd2a + 096ac44 commit a093b54
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -41,7 +41,8 @@ public void init() {
}

public boolean isUrlHandled(String url) {
URI uri = URI.create(url);
// generally the stored URLs are not encoded correctly, manually encode spaces as a quick fix
URI uri = URI.create(url.replace(" ", "%20"));
return (isLocalUri(uri) && PATH_PATTERN.matcher(uri.getPath()).matches());
}

Expand Down

0 comments on commit a093b54

Please sign in to comment.