You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we can see that the getQuery and the Utils.getQueryMap that is used in the next line conflicts, causing the account that are sent, in the query string, for filtering purpose to never be found from the getManagerFromQuery.
Hello, at line
https://github.com/AsamK/signal-cli/blob/e11e0930209e330649af182eaa0317d2d987d4e8/src/main/java/org/asamk/signal/http/HttpServerHandler.java#L159C13-L160C110
we can see that the
getQuery
and theUtils.getQueryMap
that is used in the next line conflicts, causing the account that are sent, in the query string, for filtering purpose to never be found from thegetManagerFromQuery
.signal-cli/src/main/java/org/asamk/signal/http/HttpServerHandler.java
Line 162 in e11e093
both the formats
?account=+335544777
and?account=%2B335544777
results after being parsed to someting like{account: " 335544777"}
that starts with a blank space, so an account that starts with a blank space instead that+
symbol.fix: use
getRawQuery
instead than ofgetQuery
in line 159.minial example:
just compile it and run it
javac ServerSimulation.java
andjava ServerSimulation
:)Thanks for the great library.
The text was updated successfully, but these errors were encountered: