cleanup
This commit is contained in:
@@ -599,14 +599,8 @@ function PMA_setCookie($cookie, $value, $default = null, $validity = null, $http
|
|||||||
} else {
|
} else {
|
||||||
$v = time() + $validity;
|
$v = time() + $validity;
|
||||||
}
|
}
|
||||||
/* Use native support for httponly cookies if available */
|
return setcookie($cookie, $value, $v,
|
||||||
if (version_compare(PHP_VERSION, '5.2.0', 'ge')) {
|
PMA_Config::getCookiePath(), '', PMA_Config::isHttps(), $httponly);
|
||||||
return setcookie($cookie, $value, $v,
|
|
||||||
PMA_Config::getCookiePath(), '', PMA_Config::isHttps(), $httponly);
|
|
||||||
} else {
|
|
||||||
return setcookie($cookie, $value, $v,
|
|
||||||
PMA_Config::getCookiePath() . ($httponly ? '; HttpOnly' : ''), '', PMA_Config::isHttps());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// cookie has already $value as value
|
// cookie has already $value as value
|
||||||
|
Reference in New Issue
Block a user