diff --git a/mozilla/webtools/tinderbox/addnote.cgi b/mozilla/webtools/tinderbox/addnote.cgi index 63ea481bb05..bbc0a2eb493 100755 --- a/mozilla/webtools/tinderbox/addnote.cgi +++ b/mozilla/webtools/tinderbox/addnote.cgi @@ -40,7 +40,13 @@ if( -r "$tree/ignorebuilds.pl" ){ require "$tree/ignorebuilds.pl"; } -print "Content-type: text/html\n\n\n"; +print "Content-Type:text/html\n"; +if ($ENV{"REQUEST_METHOD"} eq 'POST' && defined($form{'note'})) { + # Expire the cookie 5 months from now + print "Set-Cookie: email=$form{who}; expires=" + . toGMTString(time + 86400 * 152) . "; path=/\n"; +} +print "\n\n"; if( $url = $form{"note"} ){ @@ -87,7 +93,10 @@ Go back to the Error Log #print "$buildname \n $buildtime \n $errorparser \n $logfile \n $tree \n $enc_buildname \n"; - print qq( +$emailvalue = ''; +$emailvalue = " value='$cookie_jar{email}'" if defined($cookie_jar{email}); + +print qq(