X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWebResponse.php;h=75efce52245eb03a3f77dfddf6d7599f91c91fa1;hb=3cca294d755b38ed3f7cc7264d59cf26ea0cd199;hp=ab7524c22e1933a8889ab66f5c516e4c03fcf264;hpb=24ba0426481e0e186cf4152bd325ba1e1e341fa7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebResponse.php b/includes/WebResponse.php index ab7524c22e..75efce5224 100644 --- a/includes/WebResponse.php +++ b/includes/WebResponse.php @@ -28,11 +28,10 @@ class WebResponse { /** - * Output a HTTP header, wrapper for PHP's - * header() + * Output a HTTP header, wrapper for PHP's header() * @param string $string header to output * @param bool $replace replace current similar header - * @param $http_response_code null|int Forces the HTTP response code to the specified value. + * @param null|int $http_response_code Forces the HTTP response code to the specified value. */ public function header( $string, $replace = true, $http_response_code = null ) { header( $string, $replace, $http_response_code ); @@ -88,12 +87,6 @@ class WebResponse { $expire = time() + $wgCookieExpiration; } - // Don't mark the cookie as httpOnly if the requesting user-agent is - // known to have trouble with httpOnly cookies. - if ( !wfHttpOnlySafe() ) { - $options['httpOnly'] = false; - } - $func = $options['raw'] ? 'setrawcookie' : 'setcookie'; if ( wfRunHooks( 'WebResponseSetCookie', array( &$name, &$value, &$expire, $options ) ) ) { @@ -132,7 +125,7 @@ class FauxResponse extends WebResponse { * Stores a HTTP header * @param string $string header to output * @param bool $replace replace current similar header - * @param $http_response_code null|int Forces the HTTP response code to the specified value. + * @param null|int $http_response_code Forces the HTTP response code to the specified value. */ public function header( $string, $replace = true, $http_response_code = null ) { if ( substr( $string, 0, 5 ) == 'HTTP/' ) { @@ -169,7 +162,7 @@ class FauxResponse extends WebResponse { /** * Get the HTTP response code, null if not set * - * @return Int or null + * @return int|null */ public function getStatusCode() { return $this->code; @@ -188,7 +181,7 @@ class FauxResponse extends WebResponse { } /** - * @param $name string + * @param string $name * @return string */ public function getcookie( $name ) {