From bccd6fea65f4815b39b5e1a8998c5f744707c94c Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 17 Oct 2007 14:07:58 +0000 Subject: [PATCH] cleanup --- libraries/core.lib.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libraries/core.lib.php b/libraries/core.lib.php index 669efec49..8efd1368a 100644 --- a/libraries/core.lib.php +++ b/libraries/core.lib.php @@ -599,14 +599,8 @@ function PMA_setCookie($cookie, $value, $default = null, $validity = null, $http } else { $v = time() + $validity; } - /* Use native support for httponly cookies if available */ - if (version_compare(PHP_VERSION, '5.2.0', 'ge')) { - 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()); - } + return setcookie($cookie, $value, $v, + PMA_Config::getCookiePath(), '', PMA_Config::isHttps(), $httponly); } // cookie has already $value as value