diff --git a/.github/workflows/codacy-analysis.yml b/.github/workflows/codacy-analysis.yml index e5aa4641..94ddf3a1 100644 --- a/.github/workflows/codacy-analysis.yml +++ b/.github/workflows/codacy-analysis.yml @@ -25,7 +25,7 @@ jobs: # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis - name: Run Codacy Analysis CLI - uses: codacy/codacy-analysis-cli-action@4.0.0 + uses: codacy/codacy-analysis-cli-action@4.0.2 with: # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository # You can also omit the token and run the tools that support default configurations diff --git a/src/main/java/me/totalfreedom/totalfreedommod/httpd/NanoHTTPD.java b/src/main/java/me/totalfreedom/totalfreedommod/httpd/NanoHTTPD.java index c0566cc1..bd045b95 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/httpd/NanoHTTPD.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/httpd/NanoHTTPD.java @@ -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;