r101097 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101096‎ | r101097 | r101098 >
Date:00:21, 28 October 2011
Author:preilly
Status:ok
Tags:
Comment:
remove prefix from cookie
Modified paths:
  • /trunk/extensions/MobileFrontend/MobileFrontend.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/MobileFrontend.php
@@ -624,7 +624,7 @@
625625 wfProfileIn( __METHOD__ );
626626 $tempWgCookieDomain = $wgCookieDomain;
627627 $wgCookieDomain = $this->getBaseDomain();
628 - $wgRequest->response()->setcookie( 'optin', $value );
 628+ $wgRequest->response()->setcookie( 'optin', $value, 0, '' );
629629 $wgCookieDomain = $tempWgCookieDomain;
630630 wfProfileOut( __METHOD__ );
631631 }
@@ -632,7 +632,7 @@
633633 private function getOptInOutCookie() {
634634 global $wgRequest;
635635 wfProfileIn( __METHOD__ );
636 - $optInCookie = $wgRequest->getCookie( 'optin' );
 636+ $optInCookie = $wgRequest->getCookie( 'optin', '' );
637637 wfProfileOut( __METHOD__ );
638638 return $optInCookie;
639639 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r101098mft r101097preilly00:22, 28 October 2011

Status & tagging log