Commit e7a85a44 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1191510: Tags with spaces in them are incorrectly split into several tags

r=gerv a=dkl
parent 568c9330
......@@ -348,7 +348,7 @@ if (defined $cgi->param('id')) {
# Tags can only be set to one bug at once.
if (should_set('tag')) {
my @new_tags = split(/[\s,]+/, $cgi->param('tag'));
my @new_tags = grep { trim($_) } split(/,/, $cgi->param('tag'));
my ($tags_removed, $tags_added) = diff_arrays($first_bug->tags, \@new_tags);
$first_bug->remove_tag($_) foreach @$tags_removed;
$first_bug->add_tag($_) foreach @$tags_added;
......
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