Skip to content

Commit d5296d8

Browse files
committed
fixes
1 parent 1b44209 commit d5296d8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Xerces detection fixed (regression in 2.68.0).
1313
</action>
1414
<action type="fix" dev="rbri" issue="523">
15-
Cached location.hash was not updated by history.replaceState()/history.pushState().
15+
Cached location.hash was not updated by history.replaceState() / history.pushState().
1616
</action>
1717
<action type="fix" dev="rbri" issue="523">
1818
The url was not encoded by history.replaceState() / history.pushState().

src/main/java/com/gargoylesoftware/htmlunit/util/UrlUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ public final class UrlUtils {
177177

178178
final BitSet allowedFragment = new BitSet(256);
179179
allowedFragment.or(uric);
180-
allowedFragment.clear('%');
181180

182181
final BitSet allowedQuery = new BitSet(256);
183182
allowedQuery.or(uric);

src/test/java/com/gargoylesoftware/htmlunit/WebClient6Test.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ public void redirectAbsolute301WithQueryAndHash() throws Exception {
135135
@Alerts(DEFAULT = {"§§URL§§page2.html?ignorefrom=pwr&#x26;ignorenai=1&#x26;"
136136
+ "ignoresearch_submit=Get%20Resumes&#x26;mne=4", "3"},
137137
IE = {"§§URL§§page2.html?ignorefrom=pwr&", "3"})
138-
@HtmlUnitNYI(CHROME = {"http://localhost:22222/page2.html?ignorefrom=pwr&"
138+
@HtmlUnitNYI(CHROME = {"§§URL§§page2.html?ignorefrom=pwr&"
139139
+ "#x26;ignorenai=1&%23x26;ignoresearch_submit=Get%20Resumes&%23x26;mne=4", "3"},
140-
EDGE = {"http://localhost:22222/page2.html?ignorefrom=pwr&"
140+
EDGE = {"§§URL§§page2.html?ignorefrom=pwr&"
141141
+ "#x26;ignorenai=1&%23x26;ignoresearch_submit=Get%20Resumes&%23x26;mne=4", "3"},
142-
FF = {"http://localhost:22222/page2.html?ignorefrom=pwr&"
142+
FF = {"§§URL§§page2.html?ignorefrom=pwr&"
143143
+ "#x26;ignorenai=1&%23x26;ignoresearch_submit=Get%20Resumes&%23x26;mne=4", "3"},
144-
FF_ESR = {"http://localhost:22222/page2.html?ignorefrom=pwr&"
144+
FF_ESR = {"§§URL§§page2.html?ignorefrom=pwr&"
145145
+ "#x26;ignorenai=1&%23x26;ignoresearch_submit=Get%20Resumes&%23x26;mne=4", "3"})
146146
public void redirectAbsolute301WithQueryAndHashSpecialChars() throws Exception {
147147
redirectGet(301, HttpMethod.GET, new URL(URL_FIRST,

0 commit comments

Comments
 (0)