don't allow ';' and ':' in the job name.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5695 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2007-11-05 03:18:14 +00:00
1 parent da2b0ce3e2
commit 6fa27c0788
1 file changed
+1 -1
+1 -1
View File
@@ -1396,7 +1396,7 @@ public final class Hudson extends View implements ItemGroup<TopLevelItem>, Node
char ch = name.charAt(i);
if(Character.isISOControl(ch))
throw new ParseException("No control code is allowed",i);
if("?*()/\\%!@#$^&|<>[]".indexOf(ch)!=-1)
if("?*()/\\%!@#$^&|<>[]:;".indexOf(ch)!=-1)
throw new ParseException("'"+ch+"' is an unsafe character",i);
}