LibURL: Don't consider file:// URL hosts as always opaque

Which was resulting in file URL hosts not being correctly percent
decoded.
This commit is contained in:
Shannon Booth 2024-08-04 13:33:09 +12:00 committed by Andreas Kling
commit a661daea71
Notes: github-actions[bot] 2024-08-04 08:38:21 +00:00
3 changed files with 22 additions and 2 deletions

View file

@ -78,6 +78,16 @@ port => ''
pathname => '/d:/'
search => ''
hash => ''
new URL('file://a%C2%ADb/p', undefined)
protocol => 'file:'
username => ''
password => ''
host => 'ab'
hostname => 'ab'
port => ''
pathname => '/p'
search => ''
hash => ''
=========================================
URL.parse('ftp://serenityos.org:21', undefined)
protocol => 'ftp:'
@ -159,3 +169,13 @@ port => ''
pathname => '/d:/'
search => ''
hash => ''
URL.parse('file://a%C2%ADb/p', undefined)
protocol => 'file:'
username => ''
password => ''
host => 'ab'
hostname => 'ab'
port => ''
pathname => '/p'
search => ''
hash => ''