code formatting
Some checks failed
Java CI / build (push) Failing after 3s
Java CI / javadoc-latest (push) Failing after 6s
Java CI / build-java7 (push) Failing after 6s
Dockerhub / docker (push) Failing after 25s
Java with IzPack Snapshot Setup / setup (push) Failing after 14s
Sync Primary Repository to GitHub Mirror / sync (push) Successful in 40s
Daily Workflow / daily-job (push) Failing after 4s
Daily Workflow / javadoc-latest (push) Failing after 7s
Daily Workflow / build-java7 (push) Failing after 6s

This commit is contained in:
zzz
2025-05-11 14:15:04 -04:00
parent 968f03e8c7
commit 488759c66b

View File

@ -387,9 +387,7 @@ public class EepGet {
return name; return name;
} }
/** Blacklist borrowed from snark */
/* Blacklist borrowed from snark */
private static final char[] ILLEGAL = new char[] { private static final char[] ILLEGAL = new char[] {
'<', '>', ':', '"', '/', '\\', '|', '?', '*', '<', '>', ':', '"', '/', '\\', '|', '?', '*',
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
@ -400,8 +398,6 @@ public class EepGet {
* Removes 'suspicious' characters from the given file name. * Removes 'suspicious' characters from the given file name.
* http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx * http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx
*/ */
private static String sanitize(String name) { private static String sanitize(String name) {
if (name.equals(".") || name.equals(" ")) if (name.equals(".") || name.equals(" "))
return "_"; return "_";