1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-16 09:50:21 -04:00

Merge pull request #11439 from Mic92/revert-warning

Revert "fix: Error on malformed URI query parameter"
This commit is contained in:
Eelco Dolstra 2024-09-06 15:48:18 +02:00 committed by GitHub
commit bb1af0645e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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("dubious URI query '%s' is missing equal sign '%s'", 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;