]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix another warning
authordmose%mozilla.org <>
Wed, 29 Mar 2000 07:18:45 +0000 (07:18 +0000)
committerdmose%mozilla.org <>
Wed, 29 Mar 2000 07:18:45 +0000 (07:18 +0000)
post_bug.cgi

index 0c959ad6692a3f4493719d3acf3f280837160cf7..2362135594a73adb8e3d4ea8fe953f98943ce8ff 100755 (executable)
@@ -47,8 +47,9 @@ sub sillyness {
 
 confirm_login();
 
-print "Set-Cookie: PLATFORM=$::FORM{'product'} ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
-print "Set-Cookie: VERSION-$::FORM{'product'}=$::FORM{'version'} ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
+print "Set-Cookie: PLATFORM=$::FORM{'product'} ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n" if ( exists $::FORM{'product'} );
+print "Set-Cookie: VERSION-$::FORM{'product'}=$::FORM{'version'} ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n" if ( exists $::FORM{'product'} && exists $::FORM{'version'} );
+
 print "Content-type: text/html\n\n";
 
 if (defined $::FORM{'maketemplate'}) {