summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2017-05-30 12:32:14 +0200
committerluccioman <luccioman@users.noreply.github.com>2017-05-30 12:32:14 +0200
commitc226ded799ff2b9a181d38ac0d88ac88365c35b1 (patch)
tree05652d746f9d99d212b085b9b91644b0165eec96 /test
parentbd88fd303e1b1bb0a35999dc16f76d0ecc4e451d (diff)
Fix unescape of URLs having some '%' chars but not percent-encoded
Diffstat (limited to 'test')
-rw-r--r--test/java/net/yacy/cora/document/id/MultiProtocolURLTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/java/net/yacy/cora/document/id/MultiProtocolURLTest.java b/test/java/net/yacy/cora/document/id/MultiProtocolURLTest.java
index a2ba443f5..482ccc2c7 100644
--- a/test/java/net/yacy/cora/document/id/MultiProtocolURLTest.java
+++ b/test/java/net/yacy/cora/document/id/MultiProtocolURLTest.java
@@ -368,6 +368,7 @@ public class MultiProtocolURLTest {
new String[] { "unencoded rfc3986 unreserved ascii chars:-.~_",
"unencoded rfc3986 unreserved ascii chars:-.~_" },
new String[] { "http://simpleurl.com/", "http://simpleurl.com/" },
+ new String[] { "http://not-a-x-www-form-urlencoded.com/example.php?params=a|b&paramwithpercent=%param%", "http://not-a-x-www-form-urlencoded.com/example.php?params=a|b&paramwithpercent=%param%" },
new String[] {
"http://url-with-unencoded-query-and-anchor.net/path?q=asciiquery&p1=param1&p2=pâräm2&p3=简化字#anchor",
"http://url-with-unencoded-query-and-anchor.net/path?q=asciiquery&p1=param1&p2=pâräm2&p3=简化字#anchor" }, };