Tags were being separated on spaces.

This commit is contained in:
ghendricks%novell.com 2006-10-30 18:58:02 +00:00
Родитель f0ef2351f0
Коммит f18fc53396
6 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -136,7 +136,7 @@ if ($action eq 'Commit'){
$case->update(\%newvalues);
if ($cgi->param('addtags')){
foreach my $name (split(/[\s,]+/, $cgi->param('addtags'))){
foreach my $name (split(/[,]+/, $cgi->param('addtags'))){
trick_taint($name);
my $tag = Bugzilla::Testopia::TestTag->new({'tag_name' => $name});
my $tag_id = $tag->store;

Просмотреть файл

@ -103,7 +103,7 @@ if ($action eq 'Commit'){
$plan->update(\%newvalues);
$plan->toggle_archive if $cgi->param('togglearch');
if ($cgi->param('addtags')){
foreach my $name (split(/[\s,]+/, $cgi->param('addtags'))){
foreach my $name (split(/[,]+/, $cgi->param('addtags'))){
trick_taint($name);
my $tag = Bugzilla::Testopia::TestTag->new({'tag_name' => $name});
my $tag_id = $tag->store;

Просмотреть файл

@ -112,7 +112,7 @@ if ($action eq 'Commit'){
);
$run->update(\%newvalues);
if ($cgi->param('addtags')){
foreach my $name (split(/[\s,]+/, $cgi->param('addtags'))){
foreach my $name (split(/[,]+/, $cgi->param('addtags'))){
trick_taint($name);
my $tag = Bugzilla::Testopia::TestTag->new({'tag_name' => $name});
my $tag_id = $tag->store;

Просмотреть файл

@ -374,7 +374,7 @@ sub do_update{
$case->update(\%newvalues);
$case->update_deps($cgi->param('tcdependson'), $cgi->param('tcblocks'));
# Add new tags
foreach my $tag_name (split(/[\s,]+/, $cgi->param('newtag'))){
foreach my $tag_name (split(/[,]+/, $cgi->param('newtag'))){
trick_taint($tag_name);
my $tag = Bugzilla::Testopia::TestTag->new({tag_name => $tag_name});
my $tag_id = $tag->store;

Просмотреть файл

@ -359,7 +359,7 @@ sub do_update {
$plan->update(\%newvalues);
# Add new tags
foreach my $tag_name (split(/[\s,]+/, $cgi->param('newtag'))){
foreach my $tag_name (split(/[,]+/, $cgi->param('newtag'))){
trick_taint($tag_name);
my $tag = Bugzilla::Testopia::TestTag->new({tag_name => $tag_name});
my $tag_id = $tag->store;

Просмотреть файл

@ -277,7 +277,7 @@ sub do_update {
$run->update(\%newvalues);
# Add new tags
foreach my $tag_name (split(/[\s,]+/, $cgi->param('newtag'))){
foreach my $tag_name (split(/[,]+/, $cgi->param('newtag'))){
trick_taint($tag_name);
my $tag = Bugzilla::Testopia::TestTag->new({tag_name => $tag_name});
my $tag_id = $tag->store;