Permalink
Browse files

The variable 'server' was interpreted as a String

  • Loading branch information...
ColinHebert committed Aug 24, 2012
1 parent 8b92f58 commit 6dccab532ad7b3cd3b872592911d315b0d95011e
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 6dccab5

Please sign in to comment.