mirror of
https://github.com/NixOS/nix.git
synced 2024-10-30 05:40:52 +00:00
Revert "fix: Error on malformed URI query parameter"
This reverts commit c9f45677b5
.
This now triggers on simple cases like `nix build .#nix`.
Reverting for now.
This commit is contained in:
parent
a81083d080
commit
5a5a010120
@ -79,15 +79,10 @@ std::map<std::string, std::string> decodeQuery(const std::string & query)
|
||||
|
||||
for (auto s : tokenizeString<Strings>(query, "&")) {
|
||||
auto e = s.find('=');
|
||||
|
||||
if (e == std::string::npos) {
|
||||
warn("invalid URI query '%s', did you forget an equals sign `=`?", s);
|
||||
continue;
|
||||
}
|
||||
|
||||
result.emplace(
|
||||
s.substr(0, e),
|
||||
percentDecode(std::string_view(s).substr(e + 1)));
|
||||
if (e != std::string::npos)
|
||||
result.emplace(
|
||||
s.substr(0, e),
|
||||
percentDecode(std::string_view(s).substr(e + 1)));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user