mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-10-06 17:32:39 +02:00
Compare commits
1 Commits
deploy-015
...
deploy-015
Author | SHA1 | Date | |
---|---|---|---|
|
0e3c00d3e1 |
@@ -248,6 +248,10 @@ class EdgeUriFactory {
|
||||
}
|
||||
}
|
||||
|
||||
if (path.endsWith("/")) {
|
||||
sb.append('/');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static void recombineQueryString(StringBuilder sb, String param) {
|
||||
|
@@ -24,7 +24,9 @@ class EdgeUrlTest {
|
||||
|
||||
@Test
|
||||
void testUriFromString() throws URISyntaxException {
|
||||
Assertions.assertEquals("https://www.example.com/", EdgeUriFactory.uriFromString("https://www.example.com/").toString());
|
||||
Assertions.assertEquals("https://www.example.com/", EdgeUriFactory.uriFromString("https://www.example.com/#heredoc").toString());
|
||||
Assertions.assertEquals("https://www.example.com/trailingslash/", EdgeUriFactory.uriFromString("https://www.example.com/trailingslash/").toString());
|
||||
Assertions.assertEquals("https://www.example.com/%25-sign", EdgeUriFactory.uriFromString("https://www.example.com/%-sign").toString());
|
||||
Assertions.assertEquals("https://www.example.com/%22-sign", EdgeUriFactory.uriFromString("https://www.example.com/%22-sign").toString());
|
||||
Assertions.assertEquals("https://www.example.com/%0A+%22huh%22", EdgeUriFactory.uriFromString("https://www.example.com/\n \"huh\"").toString());
|
||||
|
Reference in New Issue
Block a user