summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-09-16 14:02:27 +0200
committerJonas Smedegaard <dr@jones.dk>2010-09-16 14:02:27 +0200
commit699548a2f1a918bff398c34e6bef2f00c78d6f7b (patch)
treee348f852b602455e5ff3b6831a267ddc5de25c06
parent5969ae05e8ea7c71a3f95684572618c69ce76216 (diff)
Tighten addresshints to require leading chars (clashes with future group hint, and no real users contain domain-only addresshints anyway).
-rwxr-xr-xlocaluserinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/localuserinfo b/localuserinfo
index f4d5871..40fec4f 100755
--- a/localuserinfo
+++ b/localuserinfo
@@ -126,7 +126,7 @@ sub getuserinfo($) {
my @officehints = grep {s/^([\.[:alnum:]_-]+)$/%$1/} split /\s+/, $office;
my @addresshints;
if (defined($other)) {
- @addresshints = grep {/^([\.[:alnum:]_-]+|\+)?@([\.[:alnum:]_-]+)?$/} split /\s+/, $other;
+ @addresshints = grep {/^([\.[:alnum:]_-]+|\+)@([\.[:alnum:]_-]+)?$/} split /\s+/, $other;
} else {
$other = "";
}