Merge pull request #58 from nlevitt/ari-3723

for ARI-3723, accept speculative urls with query params with no value
This commit is contained in:
vonrosen
2014-04-10 12:09:16 -07:00
@@ -380,7 +380,7 @@ public class UriUtils {
"tt", "u", "ul", "var", "video", "wbr"));
}
protected static final String QNV = "[a-zA-Z_]+=(?:[\\w-/.]|%[0-9a-fA-F]{2})+"; // name=value for query strings
protected static final String QNV = "[a-zA-Z_]+=(?:[\\w-/.]|%[0-9a-fA-F]{2})*"; // name=value for query strings
protected static final String VERY_LIKELY_RELATIVE_URI_PATTERN =
"(?:\\.?/)?" // may start with "/" or "./"
+ "(?:(?:[\\w-]+|\\.\\.)/)*" // may have path/segments/