mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
fix httpd log spam
fix httpd log spam with invalid url encoded strings (lol)
This commit is contained in:
parent
733f002a87
commit
e6a20e1757
@ -337,12 +337,12 @@ public abstract class NanoHTTPD
|
|||||||
*/
|
*/
|
||||||
protected String decodePercent(String str)
|
protected String decodePercent(String str)
|
||||||
{
|
{
|
||||||
String decoded = null;
|
String decoded = str;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
decoded = URLDecoder.decode(str, "UTF8");
|
decoded = URLDecoder.decode(str, "UTF8");
|
||||||
}
|
}
|
||||||
catch (UnsupportedEncodingException ignored)
|
catch (UnsupportedEncodingException | IllegalArgumentException ignored)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
return decoded;
|
return decoded;
|
||||||
|
Loading…
Reference in New Issue
Block a user