mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Handle missing separator in query string parser
This commit is contained in:
parent
36abb8ae8f
commit
1d98e5307a
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class Utils {
|
|||
for (var param : params) {
|
||||
final var paramParts = param.split("=");
|
||||
var name = URLDecoder.decode(paramParts[0], StandardCharsets.UTF_8);
|
||||
var value = URLDecoder.decode(paramParts[1], StandardCharsets.UTF_8);
|
||||
var value = paramParts.length == 1 ? null : URLDecoder.decode(paramParts[1], StandardCharsets.UTF_8);
|
||||
map.put(name, value);
|
||||
}
|
||||
return map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue