From 5ff01e1fadca79939025f214f7894cb7a270bbd7 Mon Sep 17 00:00:00 2001 From: Lars Moelleken Date: Fri, 3 Mar 2023 09:27:13 +0100 Subject: [PATCH] fix "preg_quote" usage --- src/nusoap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;