diff options
author | lpsolit%gmail.com <> | 2006-02-22 22:28:45 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-02-22 22:28:45 +0100 |
commit | b3cdb97bbfa7fa359d30267530dbc6f213ba33c3 (patch) | |
tree | 0e842f01035d208a15929d812ec5d16659943784 | |
parent | 7a67cd30a31905047966bdedd418e389138326f0 (diff) | |
download | bugzilla-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
-rwxr-xr-x | Bugzilla/Bug.pm | 6 |
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)) { |