diff options
author | jocuri%softhome.net <> | 2004-03-28 04:07:25 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-03-28 04:07:25 +0000 |
commit | c909db1acf16d9742fd276edb06a3d7dd55d6abd (patch) | |
tree | 6bb194578cb472f07ede6ebc5c149b53bf5bd53e /editversions.cgi | |
parent | ea93be21086847642f215dccacf99199b8fd8b60 (diff) | |
download | bugs-c909db1acf16d9742fd276edb06a3d7dd55d6abd.tar bugs-c909db1acf16d9742fd276edb06a3d7dd55d6abd.tar.gz bugs-c909db1acf16d9742fd276edb06a3d7dd55d6abd.tar.bz2 bugs-c909db1acf16d9742fd276edb06a3d7dd55d6abd.tar.xz bugs-c909db1acf16d9742fd276edb06a3d7dd55d6abd.zip |
Patch for bug 238860: remove %FORM from editversions.cgi; patch by Teemu Mannermaa <wicked@etlicon.fi>; r=justdave; a=justdave.
Diffstat (limited to 'editversions.cgi')
-rwxr-xr-x | editversions.cgi | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/editversions.cgi b/editversions.cgi index 0b5e6a23a..43fe45711 100755 --- a/editversions.cgi +++ b/editversions.cgi @@ -170,9 +170,10 @@ unless (UserInGroup("editcomponents")) { # # often used variables # -my $product = trim($::FORM{product} || ''); -my $version = trim($::FORM{version} || ''); -my $action = trim($::FORM{action} || ''); +my $cgi = Bugzilla->cgi; +my $product = trim($cgi->param('product') || ''); +my $version = trim($cgi->param('version') || ''); +my $action = trim($cgi->param('action') || ''); my $localtrailer; if ($version) { $localtrailer = "<A HREF=\"editversions.cgi?product=" . url_quote($product) . "\">edit</A> more versions"; @@ -492,7 +493,7 @@ if ($action eq 'edit') { if ($action eq 'update') { PutHeader("Update version of $product"); - my $versionold = trim($::FORM{versionold} || ''); + my $versionold = trim($cgi->param('versionold') || ''); CheckVersion($product,$versionold); my $product_id = get_product_id($product); |