Skip to content
Permalink
Browse files
[FIXED JENKINS-21639] Prevent creation of job named '.'.
  • Loading branch information
daniel-beck committed Feb 4, 2014
1 parent 3aa812f commit 780b38bc755028f4c4d72378896407a182bd5b30
Showing 1 changed file with 2 additions and 0 deletions.
@@ -2993,6 +2993,8 @@ public static void checkGoodName(String name) throws Failure {
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++ ) {

0 comments on commit 780b38b

Please sign in to comment.