mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +00:00
Utilities: Allow filenames containing '=' in dd (#8766)
This commit is contained in:
parent
e46a4181fa
commit
30af999431
Notes:
sideshowbarker
2024-07-18 08:58:45 +09:00
Author: https://github.com/DMaroo 🔰 Commit: https://github.com/SerenityOS/serenity/commit/30af999431f Pull-request: https://github.com/SerenityOS/serenity/pull/8766 Issue: https://github.com/SerenityOS/serenity/issues/8746 Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ static String split_at_equals(const char* argument)
|
|||
{
|
||||
String string_value(argument);
|
||||
|
||||
auto values = string_value.split('=');
|
||||
if (values.size() != 2) {
|
||||
auto values = string_value.split_limit('=', 2);
|
||||
if (values.size() < 2) {
|
||||
warnln("Unable to parse: {}", argument);
|
||||
return {};
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue