Skip to content

Commit

Permalink
fix "preg_quote" usage
Browse files Browse the repository at this point in the history
  • Loading branch information
voku authored and f3l1x committed Mar 3, 2023
1 parent ae53073 commit 5ff01e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ff01e1

Please sign in to comment.