Blacklist some special chars

This commit is contained in:
md_5 2016-03-26 15:58:22 +11:00
parent e83f4b5a6c
commit c5115712fd

View file

@ -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();