Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

WL-2063: Remove the unnecessary quotes from the url regex #1

Merged
merged 1 commit into from

2 participants

@ColinHebert

No description provided.

@buckett buckett merged commit 904dd2a into master
@buckett
Owner

Merged.
Ever been taken with the idea of a unit test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
2  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) {
Something went wrong with that request. Please try again.