]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fixed bug 7000 -- handle hyphens in hostnames of email addresses when
authorterry%mozilla.org <>
Wed, 26 May 1999 02:52:34 +0000 (02:52 +0000)
committerterry%mozilla.org <>
Wed, 26 May 1999 02:52:34 +0000 (02:52 +0000)
highlighting.

bug_form.pl

index 1c9ecb1e03b591374f2583ca586a6e1ab2c56ec0..7757b038ceb59830806466046b7ddb0556a07cf5 100644 (file)
@@ -52,7 +52,7 @@ sub quoteUrls {
     # which can happen if you do multiple s///g operations.
 
     my @things;
-    while ($text =~ s%((mailto:)?([\w\.\-\+\=]+\@\w+(?:\.\w+)+)\b|
+    while ($text =~ s%((mailto:)?([\w\.\-\+\=]+\@[\w\-]+(?:\.[\w\-]+)+)\b|
                        (\b((?:$protocol):\S+[\w/])))%"##$count##"%exo) {
         my $item = $&;