From 3f43fcdf236e1f88eebddf930a360dcc12122bcd Mon Sep 17 00:00:00 2001 From: Yurii Date: Sat, 21 Mar 2026 10:12:43 +0200 Subject: [PATCH] bc isNotInternalUrl --- application/Espo/Core/Utils/Security/UrlCheck.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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); + } }