summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-22 22:28:45 +0100
committerlpsolit%gmail.com <>2006-02-22 22:28:45 +0100
commitb3cdb97bbfa7fa359d30267530dbc6f213ba33c3 (patch)
tree0e842f01035d208a15929d812ec5d16659943784 /Bugzilla/Bug.pm
parent7a67cd30a31905047966bdedd418e389138326f0 (diff)
downloadbugzilla-b3cdb97bbfa7fa359d30267530dbc6f213ba33c3.tar.gz
bugzilla-b3cdb97bbfa7fa359d30267530dbc6f213ba33c3.tar.xz
Bug 172415: Bugzilla should support URLs containing bug IDs with a leading # - Patch by Marc Schumann <wurblzap@gmail.com> r=gerv a=justdave
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 6165fd2bb..302ac38b7 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -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)) {