Skip to content

EspoCRM – Open Source CRM Application

bc isNotInternalUrl

Yurii3f43fcdf236e
diff --git a/application/Espo/Core/Utils/Security/UrlCheck.php b/application/Espo/Core/Utils/Security/UrlCheck.php
index 9a89787d2f..6d8a57b009 100644
--- a/application/Espo/Core/Utils/Security/UrlCheck.php
+++ b/application/Espo/Core/Utils/Security/UrlCheck.php
@@ -44,7 +44,9 @@ class UrlCheck
}
/**
- * Checks whether a URL does not follow to an internal host.
+ * Checks whether it's a URL, and it does not follow to an internal host.
+ *
+ * @since 9.3.4
*/
public function isUrlAndNotIternal(string $url): bool
{
@@ -60,4 +62,13 @@ class UrlCheck
return $this->hostCheck->isHostAndNotInternal($host);
}
+
+ /**
+ * @deprecated Since 9.3.4. Use `isUrlAndNotIternal`.
+ * @todo Remove in 9.5.0.
+ */
+ public function isNotInternalUrl(string $url): bool
+ {
+ return $this->isUrlAndNotIternal($url);
+ }
}