mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-05 07:16:27 +00:00
Update Curl.php
More rigorous comparison
This commit is contained in:
+1
-1
@@ -708,7 +708,7 @@ class Curl
|
||||
{
|
||||
if(preg_match_all('/\s*([^;=]+)=([^;]+)/i',$string,$matches) > 0){
|
||||
if(isset($matches[1]) && isset($matches[2])){
|
||||
if(count($matches[1]) == count($matches[2])){
|
||||
if(count($matches[1]) === count($matches[2])){
|
||||
foreach ($matches[1] as $handle => $key) {
|
||||
$this->setCookie($key, $matches[2][$handle]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user