mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20: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) {
|
for (var param : params) {
|
||||||
final var paramParts = param.split("=");
|
final var paramParts = param.split("=");
|
||||||
var name = URLDecoder.decode(paramParts[0], StandardCharsets.UTF_8);
|
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);
|
map.put(name, value);
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue