From c5115712fd7f021ac06e56dad25012978d29af9d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 26 Mar 2016 15:58:22 +1100 Subject: Blacklist some special chars --- src/main/java/org/spigotmc/builder/Builder.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/spigotmc/builder/Builder.java b/src/main/java/org/spigotmc/builder/Builder.java index 887f3d7..461142c 100644 --- a/src/main/java/org/spigotmc/builder/Builder.java +++ b/src/main/java/org/spigotmc/builder/Builder.java @@ -77,6 +77,12 @@ public class Builder public static void main(String[] args) throws Exception { + if ( CWD.getAbsolutePath().contains( "'" ) || CWD.getAbsolutePath().contains( ";" ) || CWD.getAbsolutePath().contains( ":" ) || CWD.getAbsolutePath().contains( "!" ) || CWD.getAbsolutePath().contains( "#" ) || CWD.getAbsolutePath().contains( "\"" ) ) + { + System.err.println( "Please do not run in a path with special characters!" ); + return; + } + if ( false && System.console() == null ) { JFrame jFrame = new JFrame(); -- cgit v1.2.3