]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 179290 - login cookie email needs to be escaped
authorbbaetz%student.usyd.edu.au <>
Mon, 11 Nov 2002 10:23:26 +0000 (10:23 +0000)
committerbbaetz%student.usyd.edu.au <>
Mon, 11 Nov 2002 10:23:26 +0000 (10:23 +0000)
r=jake, a=justdave

CGI.pl

diff --git a/CGI.pl b/CGI.pl
index 9ff48526577c91378d461331a10790fcccbb5e27..1b22a07e48389e9001ae9d4a859eface3c659501 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -561,7 +561,7 @@ sub confirm_login {
 
        $::COOKIE{"Bugzilla_logincookie"} = $logincookie;
        my $cookiepath = Param("cookiepath");
-       print "Set-Cookie: Bugzilla_login=$enteredlogin ; path=$cookiepath; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
+       print "Set-Cookie: Bugzilla_login= " . url_quote($enteredlogin) . " ; path=$cookiepath; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
        print "Set-Cookie: Bugzilla_logincookie=$logincookie ; path=$cookiepath; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
     }