提交 780b38bc 编写于 作者: D Daniel Beck

[FIXED JENKINS-21639] Prevent creation of job named '.'.

上级 3aa812fe
......@@ -2993,6 +2993,8 @@ public class Jenkins extends AbstractCIBase implements DirectlyModifiableTopLeve
if(name==null || name.length()==0)
throw new Failure(Messages.Hudson_NoName());
if(".".equals(name.trim()))
throw new Failure(Messages.Jenkins_NotAllowedName("."));
if("..".equals(name.trim()))
throw new Failure(Messages.Jenkins_NotAllowedName(".."));
for( int i=0; i<name.length(); i++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册