diff options
author | md_5 <git@md-5.net> | 2016-03-26 15:58:22 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-26 15:58:22 +1100 |
commit | c5115712fd7f021ac06e56dad25012978d29af9d (patch) | |
tree | 11e70812620299db4b132600bf889e1b10a8312b /src/main/java/org | |
parent | e83f4b5a6cf0148508228f79cac8bc522b426a1a (diff) | |
download | buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar.gz buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar.lz buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar.xz buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.zip |
Blacklist some special chars
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/spigotmc/builder/Builder.java | 6 |
1 files changed, 6 insertions, 0 deletions
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(); |