X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fbrowser-kit%2FCookieJar.php;h=24eb9abeddbf0ec0f8d3476f641563e98b5ee316;hb=5b8bb166bfa98770daef9de5c127fc2e6ef02340;hp=7a4d64c10e5e2d5899977418fc5141fc495fc6a1;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/symfony/browser-kit/CookieJar.php b/vendor/symfony/browser-kit/CookieJar.php index 7a4d64c10..24eb9abed 100644 --- a/vendor/symfony/browser-kit/CookieJar.php +++ b/vendor/symfony/browser-kit/CookieJar.php @@ -123,7 +123,7 @@ class CookieJar if (0 === $i || preg_match('/^(?P\s*[0-9A-Za-z!#\$%\&\'\*\+\-\.^_`\|~]+)=/', $part)) { $cookies[] = ltrim($part); } else { - $cookies[count($cookies) - 1] .= ','.$part; + $cookies[\count($cookies) - 1] .= ','.$part; } } } @@ -186,13 +186,13 @@ class CookieJar foreach ($this->cookieJar as $domain => $pathCookies) { if ($domain) { $domain = '.'.ltrim($domain, '.'); - if ($domain != substr('.'.$parts['host'], -strlen($domain))) { + if ($domain != substr('.'.$parts['host'], -\strlen($domain))) { continue; } } foreach ($pathCookies as $path => $namedCookies) { - if ($path != substr($parts['path'], 0, strlen($path))) { + if ($path != substr($parts['path'], 0, \strlen($path))) { continue; }