Commit b3cdb97b authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 172415: Bugzilla should support URLs containing bug IDs with a leading # -…

Bug 172415: Bugzilla should support URLs containing bug IDs with a leading # - Patch by Marc Schumann <wurblzap@gmail.com> r=gerv a=justdave
parent 7a67cd30
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment