]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 172415: Bugzilla should support URLs containing bug IDs with a leading # - Patch...
authorlpsolit%gmail.com <>
Wed, 22 Feb 2006 21:28:45 +0000 (21:28 +0000)
committerlpsolit%gmail.com <>
Wed, 22 Feb 2006 21:28:45 +0000 (21:28 +0000)
Bugzilla/Bug.pm

index 6165fd2bbe4b6688a980f3bee7aae44066c9d396..302ac38b731b9500e382a95bfa7e83ca3bab51d5 100755 (executable)
@@ -1148,9 +1148,11 @@ sub ValidateBugID {
     my $dbh = Bugzilla->dbh;
     my $user = Bugzilla->user;
 
-    # Get rid of white-space around the ID.
+    # Get rid of leading '#' (number) mark, if present.
+    $id =~ s/^\s*#//;
+    # Remove whitespace
     $id = trim($id);
-    
+
     # If the ID isn't a number, it might be an alias, so try to convert it.
     my $alias = $id;
     if (!detaint_natural($id)) {