fix httpd log spam (#223)

fix httpd log spam with invalid url encoded strings (lol)

Co-authored-by: Paldiu <[email protected]>
Co-authored-by: Ryan <[email protected]>
This commit is contained in:
ayunami2000
2022-06-03 18:27:37 +01:00
committed by GitHub
co-authored by Paldiu Ryan
parent ecc92589e9
commit 68bcabe5c2
@@ -337,12 +337,12 @@ public abstract class NanoHTTPD
*/
protected String decodePercent(String str)
{
String decoded = null;
String decoded = str;
try
{
decoded = URLDecoder.decode(str, "UTF8");
}
catch (UnsupportedEncodingException ignored)
catch (UnsupportedEncodingException | IllegalArgumentException ignored)
{
}
return decoded;