[pkg-perl-tools] 01/01: dpt-salsa: allow '-' in usernames

gregor herrmann gregoa at debian.org
Fri Feb 16 19:11:46 UTC 2018


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository pkg-perl-tools.

commit b25898c7995490a05233b01690415b46fc268dc8
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Feb 16 20:11:02 2018 +0100

    dpt-salsa: allow '-' in usernames
    
    d'oh -- *-guest!
    
    Gbp-Dch: Ignore
---
 scripts/salsa | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/salsa b/scripts/salsa
index da2e9fa..94e2f7a 100755
--- a/scripts/salsa
+++ b/scripts/salsa
@@ -405,7 +405,7 @@ sub username2userid {
 sub user2userid {
     my $user = shift;
     return $user if $user =~ /^\d+$/;
-    return username2userid($user) if $user =~ /^\w+$/;
+    return username2userid($user) if $user =~ /^[\w-]+$/;
     die "Parameter '$user' doesn't look like a userid or a username.";
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list