Skip to content
Browse files
[FIXED JENKINS-21639] Prevent creation of job named '.'.
(cherry picked from commit 780b38b)
  • Loading branch information
daniel-beck authored and olivergondza committed Feb 16, 2014
1 parent 4a6e59b commit fec6b41b74d7ece48ae2afbdfb995b377d4094ea
Showing 1 changed file with 2 additions and 0 deletions.
@@ -2948,6 +2948,8 @@ public static void checkGoodName(String name) throws Failure {
if(name==null || name.length()==0)
throw new Failure(Messages.Hudson_NoName());

throw new Failure(Messages.Jenkins_NotAllowedName("."));
throw new Failure(Messages.Jenkins_NotAllowedName(".."));
for( int i=0; i<name.length(); i++ ) {

0 comments on commit fec6b41

Please sign in to comment.