From 9aab66ba7fac2c414967473a87011d431718978c Mon Sep 17 00:00:00 2001 From: Shankar Konar Date: Tue, 8 Oct 2019 14:22:33 +0530 Subject: [PATCH] Regular expression added for url redirect pattern --- AdobeStockAdminUi/Model/System/Config/Comment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AdobeStockAdminUi/Model/System/Config/Comment.php b/AdobeStockAdminUi/Model/System/Config/Comment.php index ae8bcf32490f..70ab760c60ec 100644 --- a/AdobeStockAdminUi/Model/System/Config/Comment.php +++ b/AdobeStockAdminUi/Model/System/Config/Comment.php @@ -18,6 +18,8 @@ class Comment implements CommentInterface { private const REDIRECT_MCA = 'adobe_ims/oauth/callback'; + private const REG_EXP_URL = '.*'; + /** * @var UrlInterface */ @@ -75,6 +77,6 @@ private function getRedirectUrl(): string */ private function getRedirectUrlPattern(): string { - return str_replace('.', '\\\.', $this->getRedirectUrl()); + return str_replace('.', '\\\.', $this->getRedirectUrl()).self::REG_EXP_URL; } }