mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-01 23:58:07 +03: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
@ -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 New Issue
Block a user