svn: /web/doc-editor/trunk/php/ AccountManager.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 21 Jul 2011 12:27:00 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=313531

Log:
Fix encoded for the loginApp cookie

Changed paths:
    U   web/doc-editor/trunk/php/AccountManager.php

Modified: web/doc-editor/trunk/php/AccountManager.php
===================================================================
--- web/doc-editor/trunk/php/AccountManager.php	2011-07-21 12:22:31 UTC (rev 313530)
+++ web/doc-editor/trunk/php/AccountManager.php	2011-07-21 12:27:00 UTC (rev 313531)
@@ -460,7 +460,7 @@

             // Store some user info in cookies: we can use this to pre-fill the
             // login page if the user's session expires.
-            setcookie("loginApp", $this->vcsLogin, time() + 3600*24*365, "/"); // One year ;)
+            setcookie("loginApp", utf8_encode($this->vcsLogin), time() + 3600*24*365, "/"); // One year ;)
             setcookie("email", $this->email, time() + 3600*24*365, "/");
             setcookie("lang", $this->vcsLang, time() + 3600*24*365, "/");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.