Changeset 70


Ignore:
Timestamp:
11/21/08 17:49:55 (3 years ago)
Author:
bruno
Message:

Fix bug  http://glpi.hpintelco.org/glpi/front/tracking.form.php?ID=704 by exiting when an unknown option is given to createsshuser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/sshgw/bin/createsshuser

    r11 r70  
    5858#           print "TEST: ccmail1: $emailcc\n"; 
    5959        } 
     60        print STDERR "Unknown option $params[0]\n"; 
     61        &usage; 
    6062    } 
    6163 
     
    8587    die "User $username already exists\n" if getpwnam($username) ; 
    8688 
    87     die "Full name should not contain any special characters (like : or \")\n" unless $fullname =~ /^[a-zàâäéèêëîïôöùûüÿA-Z0-9 (),\.\-_\$&\#]+/ ; 
     89    die "Full name should not contain any special characters (like : or \")\n" unless $fullname =~ /^[a-zàâÀéÚêëîïÎöùûÌÿA-Z0-9 (),\.\-_\$&\#]+/ ; 
    8890 
    8991    foreach $group (split(/ /,$groups)) { 
Note: See TracChangeset for help on using the changeset viewer.