mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
make sure values are strings before urldecode
This commit is contained in:
parent
69ff185da0
commit
a6f657efbe
1 changed files with 2 additions and 2 deletions
|
@ -58,10 +58,10 @@ class RequestData
|
|||
$data = [];
|
||||
foreach ((array) $assocArray as $rawKey => $rawValue) {
|
||||
if (! is_array($rawValue)) {
|
||||
$data[sanitize_text_field(urldecode($rawKey))] = sanitize_text_field(urldecode($rawValue));
|
||||
$data[sanitize_text_field(urldecode((string) $rawKey))] = sanitize_text_field(urldecode((string) $rawValue));
|
||||
continue;
|
||||
}
|
||||
$data[sanitize_text_field(urldecode($rawKey))] = $this->sanitize($rawValue);
|
||||
$data[sanitize_text_field(urldecode((string) $rawKey))] = $this->sanitize($rawValue);
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue