We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ff8b0f commit 49ef9b9Copy full SHA for 49ef9b9
app/code/Magento/Usps/Model/Config/Backend/UspsUrl.php
@@ -66,7 +66,7 @@ public function beforeSave()
66
// phpcs:ignore Magento2.Functions.DiscouragedFunction
67
$host = parse_url((string)$this->getValue(), \PHP_URL_HOST);
68
69
- if (!empty($host) && !preg_match("/(?:.+\.|^)usps|shippingapis\.com$/i", $host)) {
+ if (!empty($host) && !preg_match("/(?:.+\.|^)(usps|shippingapis)\.com$/i", $host)) {
70
throw new ValidatorException(__('USPS API endpoint URL\'s must use usps.com or shippingapis.com'));
71
}
72
0 commit comments