mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
LibWeb+LibURL: Default empty string paths to URL's path in CookieStore
This commit is contained in:
parent
2f61199b01
commit
1f1adb6d7e
Notes:
github-actions[bot]
2025-08-17 20:18:38 +00:00
Author: https://github.com/IdanHo
Commit: 1f1adb6d7e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5876
Reviewed-by: https://github.com/gmta ✅
3 changed files with 59 additions and 26 deletions
|
@ -85,6 +85,11 @@ void URL::set_paths(Vector<ByteString> const& paths)
|
|||
m_data->paths.unchecked_append(percent_encode(segment, PercentEncodeSet::Path));
|
||||
}
|
||||
|
||||
void URL::set_raw_paths(Vector<String> paths)
|
||||
{
|
||||
m_data->paths = move(paths);
|
||||
}
|
||||
|
||||
void URL::append_path(StringView path)
|
||||
{
|
||||
m_data->paths.append(percent_encode(path, PercentEncodeSet::Path));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue