svn: /web/pecl/trunk/public_html/bugs/ bug.php report.php search.php
| From: | Ferenc Kovacs | Date: | Sun, 26 Jun 2011 00:13:22 +0000 |
| Subject: | svn: /web/pecl/trunk/public_html/bugs/ bug.php report.php search.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-15894@lists.php.net to get a copy of this message | ||
tyrael Sun, 26 Jun 2011 00:13:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312477
Log:
remove the MAGIC_COOKIE from the peclweb bug tracker
Changed paths:
U web/pecl/trunk/public_html/bugs/bug.php
U web/pecl/trunk/public_html/bugs/report.php
U web/pecl/trunk/public_html/bugs/search.php
Modified: web/pecl/trunk/public_html/bugs/bug.php
===================================================================
--- web/pecl/trunk/public_html/bugs/bug.php 2011-06-25 23:35:50 UTC (rev 312476)
+++ web/pecl/trunk/public_html/bugs/bug.php 2011-06-26 00:13:22 UTC (rev 312477)
@@ -66,13 +66,6 @@
$edit == 1) {
$user = rinse($_COOKIE['PEAR_USER']);
$pw = rinse($_COOKIE['PEAR_PW']);
-} elseif (isset($_COOKIE['MAGIC_COOKIE'])) {
- @list($user, $pw) = explode(':', base64_decode($_COOKIE['MAGIC_COOKIE']));
- // FIXME: Disabled php.net login via magic cookie
- $user = NULL;
- if ($pw === null) {
- $pw = '';
- }
} else {
$user = '';
$pw = '';
Modified: web/pecl/trunk/public_html/bugs/report.php
===================================================================
--- web/pecl/trunk/public_html/bugs/report.php 2011-06-25 23:35:50 UTC (rev 312476)
+++ web/pecl/trunk/public_html/bugs/report.php 2011-06-26 00:13:22 UTC (rev 312477)
@@ -42,12 +42,6 @@
*/
$numeralCaptcha = new NumeralCaptcha();
-if (isset($_POST['save']) && isset($_POST['pw'])) {
- // non-developers don't have $user set
- setcookie('MAGIC_COOKIE', base64_encode(':' . $_POST['pw']),
- time() + 3600 * 24 * 12, '/', '.php.net');
-}
-
if (isset($_POST['in'])) {
$errors = incoming_details_are_valid($_POST['in'], 1, ($auth_user &&
$auth_user->registered));
Modified: web/pecl/trunk/public_html/bugs/search.php
===================================================================
--- web/pecl/trunk/public_html/bugs/search.php 2011-06-25 23:35:50 UTC (rev 312476)
+++ web/pecl/trunk/public_html/bugs/search.php 2011-06-26 00:13:22 UTC (rev 312477)
@@ -32,11 +32,7 @@
if (isset($_COOKIE['PEAR_USER'])) {
$x = '&edit=1';
} else {
- if (isset($_COOKIE['MAGIC_COOKIE'])) {
- $x = '&edit=2';
- } else {
- $x = '';
- }
+ $x = '';
}
localRedirect('bug.php?id=' . $_GET['search_for'] . $x);
exit;