-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.2.2, 2.3.0-beta-1
-
Component/s: JSON
-
Labels:None
URL may contains '\' char and in this case url also must escaped.
To reproduce bug:
assert JsonOutput.toJson(new URL('file', '', 'C:\\this\\is\\windows\\path')) == '"file:C:\\\\this\\\\is\\\\windows\\\\path"'
Assertion failed: assert JsonOutput.toJson(new URL('file', '', 'C:\\this\\is\\windows\\path')) == '"file:C:\\\\this\\\\is\\\\windows\\\\path"' | | | | file:C:\this\is\windows\path false "file:C:\this\is\windows\path"