Commit c909db1a authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 238860: remove %FORM from editversions.cgi; patch by Teemu…

Patch for bug 238860: remove %FORM from editversions.cgi; patch by Teemu Mannermaa <wicked@etlicon.fi>; r=justdave; a=justdave.
parent ea93be21
...@@ -170,9 +170,10 @@ unless (UserInGroup("editcomponents")) { ...@@ -170,9 +170,10 @@ unless (UserInGroup("editcomponents")) {
# #
# often used variables # often used variables
# #
my $product = trim($::FORM{product} || ''); my $cgi = Bugzilla->cgi;
my $version = trim($::FORM{version} || ''); my $product = trim($cgi->param('product') || '');
my $action = trim($::FORM{action} || ''); my $version = trim($cgi->param('version') || '');
my $action = trim($cgi->param('action') || '');
my $localtrailer; my $localtrailer;
if ($version) { if ($version) {
$localtrailer = "<A HREF=\"editversions.cgi?product=" . url_quote($product) . "\">edit</A> more versions"; $localtrailer = "<A HREF=\"editversions.cgi?product=" . url_quote($product) . "\">edit</A> more versions";
...@@ -492,7 +493,7 @@ if ($action eq 'edit') { ...@@ -492,7 +493,7 @@ if ($action eq 'edit') {
if ($action eq 'update') { if ($action eq 'update') {
PutHeader("Update version of $product"); PutHeader("Update version of $product");
my $versionold = trim($::FORM{versionold} || ''); my $versionold = trim($cgi->param('versionold') || '');
CheckVersion($product,$versionold); CheckVersion($product,$versionold);
my $product_id = get_product_id($product); my $product_id = get_product_id($product);
......
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