summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-03-26 15:58:22 +1100
committermd_5 <git@md-5.net>2016-03-26 15:58:22 +1100
commitc5115712fd7f021ac06e56dad25012978d29af9d (patch)
tree11e70812620299db4b132600bf889e1b10a8312b
parente83f4b5a6cf0148508228f79cac8bc522b426a1a (diff)
downloadbuildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar
buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar.gz
buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar.lz
buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.tar.xz
buildtools-c5115712fd7f021ac06e56dad25012978d29af9d.zip
Blacklist some special chars
-rw-r--r--src/main/java/org/spigotmc/builder/Builder.java6
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();