mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
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:
1 parent
da2b0ce3e2
commit
6fa27c0788
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user