提交 6fa27c07 编写于 作者: K kohsuke

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
上级 da2b0ce3
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册