[BrowserKit] Fixed cs.
This commit is contained in:
parent
df3da289ad
commit
7f928332a9
@ -100,10 +100,10 @@ class CookieJar
|
|||||||
|
|
||||||
foreach ($response->getHeader('Set-Cookie', false) as $cookie) {
|
foreach ($response->getHeader('Set-Cookie', false) as $cookie) {
|
||||||
foreach (explode(',', $cookie) as $i => $part) {
|
foreach (explode(',', $cookie) as $i => $part) {
|
||||||
if ($i==0 || preg_match('/^(?P<token>\s*[0-9A-Za-z!#\$%\&\'\*\+\-\.^_`\|~]+)=/', $part)) {
|
if (0 === $i || preg_match('/^(?P<token>\s*[0-9A-Za-z!#\$%\&\'\*\+\-\.^_`\|~]+)=/', $part)) {
|
||||||
$cookies[] = ltrim($part);
|
$cookies[] = ltrim($part);
|
||||||
} else {
|
} else {
|
||||||
$cookies[count($cookies)-1].= ','.$part;
|
$cookies[count($cookies) - 1] .= ','.$part;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user