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 b1f51ef commit c463ca8Copy full SHA for c463ca8
app/code/Magento/Integration/Controller/Adminhtml/Integration/Save.php
@@ -166,8 +166,10 @@ private function processData($integrationData)
166
167
$integrationData = array_merge($integrationData, $data);
168
169
- if (!empty($integrationData[Info::DATA_IDENTITY_LINK_URL])) {
170
- $this->validateIdentityLinkURL($integrationData[Info::DATA_IDENTITY_LINK_URL]);
+ // Check if the Identity Link URL field is not empty and then validate it
+ $url = $integrationData[Info::DATA_IDENTITY_LINK_URL] ?? null;
171
+ if (!empty($url) && !$this->urlValidator->isValid($url)) {
172
+ throw new LocalizedException(__('Invalid Identity Link URL'));
173
}
174
175
if (!isset($integrationData[Info::DATA_ID])) {
0 commit comments