Skip to content

Commit 63c4264

Browse files
author
vonrosen
committed
Merge pull request #58 from nlevitt/ari-3723
for ARI-3723, accept speculative urls with query params with no value
2 parents 030063f + 339e6ec commit 63c4264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commons/src/main/java/org/archive/util/UriUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public static String speculativeFixup(String candidate, UURI base) {
380380
"tt", "u", "ul", "var", "video", "wbr"));
381381
}
382382

383-
protected static final String QNV = "[a-zA-Z_]+=(?:[\\w-/.]|%[0-9a-fA-F]{2})+"; // name=value for query strings
383+
protected static final String QNV = "[a-zA-Z_]+=(?:[\\w-/.]|%[0-9a-fA-F]{2})*"; // name=value for query strings
384384
protected static final String VERY_LIKELY_RELATIVE_URI_PATTERN =
385385
"(?:\\.?/)?" // may start with "/" or "./"
386386
+ "(?:(?:[\\w-]+|\\.\\.)/)*" // may have path/segments/

0 commit comments

Comments
 (0)