diff --git a/src/nusoap.php b/src/nusoap.php index 538b0a9..519434e 100755 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -3498,14 +3498,14 @@ function getCookiesForRequest($cookies, $secure = false) } } if ((isset($cookie['domain'])) && (!empty($cookie['domain']))) { - $domain = preg_quote($cookie['domain']); + $domain = preg_quote($cookie['domain'], "'"); if (!preg_match("'.*$domain$'i", $this->host)) { $this->debug('cookie has different domain'); continue; } } if ((isset($cookie['path'])) && (!empty($cookie['path']))) { - $path = preg_quote($cookie['path']); + $path = preg_quote($cookie['path'], "'"); if (!preg_match("'^$path.*'i", $this->path)) { $this->debug('cookie is for a different path'); continue;