mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-03 19:15:45 +00:00
fix httpd log spam (#223)
fix httpd log spam with invalid url encoded strings (lol) Co-authored-by: Paldiu <pawereus@gmail.com> Co-authored-by: Ryan <Wild1145@users.noreply.github.com>
This commit is contained in:
parent
ecc92589e9
commit
68bcabe5c2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue