Permalink
Browse files

Merge pull request #1 from ox-it/WL-2063

WL-2063: Remove the unnecessary quotes from the url regex
  • Loading branch information...
2 parents 6dccab5 + 61ff65b commit 904dd2a57e5babcaf4b2926a4615cdfb835f437c @buckett buckett committed Jan 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 impl/src/java/org/sakaiproject/shortenedurl/impl/ShortenedInterceptor.java
@@ -37,7 +37,7 @@ public void init() {
if (iterator.hasNext())
servers.append('|');
}
- shortenedUrlPattern = Pattern.compile("(https?://)?(?:\"" + servers + "\")(?::\\d+)?/+x/+\\w+", Pattern.CASE_INSENSITIVE);
+ shortenedUrlPattern = Pattern.compile("(https?://)?(?:" + servers + ")(?::\\d+)?/+x/+\\w+", Pattern.CASE_INSENSITIVE);
}
public boolean isUrlHandled(String url) {

0 comments on commit 904dd2a

Please sign in to comment.