mirror of
https://hub.spigotmc.org/stash/scm/spigot/buildtools.git
synced 2025-09-18 21:45:56 +00:00
Blacklist some special chars
This commit is contained in:
parent
e83f4b5a6c
commit
c5115712fd
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue