mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
AK: Properly implement steps for shortening a URLs path
Instead of implementing this inline, put it into a function. Use this new function to correctly implement shortening paths for some places where this logic was previously missing. Before these changes, the pathname for the included test was incorrectly being set to '/' as we were not considering the windows drive letter.
This commit is contained in:
committed by
Andreas Kling
parent
bfdf7779ce
commit
453dd0cf44
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/453dd0cf44 Pull-request: https://github.com/SerenityOS/serenity/pull/21119 Reviewed-by: https://github.com/kemzeb
@@ -27,6 +27,7 @@
|
||||
{ input: 'unknown://serenityos.org:0' },
|
||||
{ input: 'http://serenityos.org/cat?dog#meow"woof' },
|
||||
{ input: '/hello', base: 'file://friends/' },
|
||||
{ input: '//d:/..', base: 'file:///C:/a/b' },
|
||||
]) {
|
||||
printURL(url.input, url.base);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user