From ad4342f1d064bbb10587f777e93be5776c7e0cb7 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Fri, 20 Jan 2023 10:48:04 +1300 Subject: [PATCH] ENH PHP 8.2 compatibility --- src/IFramePageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IFramePageController.php b/src/IFramePageController.php index 6a5ea22..aa072a5 100644 --- a/src/IFramePageController.php +++ b/src/IFramePageController.php @@ -15,7 +15,7 @@ class IFramePageController extends PageController $desiredProtocol = $this->ForceProtocol; if ($desiredProtocol && $currentProtocol !== $desiredProtocol) { $enforcedLocation = preg_replace( - "#^${currentProtocol}#", + "#^{$currentProtocol}#", $desiredProtocol ?? '', $this->AbsoluteLink() ?? '' );