Merge pull request #64 from creative-commoners/pulls/3/php82

ENH PHP 8.2 compatibility
This commit is contained in:
Guy Sartorelli 2023-01-26 10:16:36 +13:00 committed by GitHub
commit a9133931d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class IFramePageController extends PageController
$desiredProtocol = $this->ForceProtocol;
if ($desiredProtocol && $currentProtocol !== $desiredProtocol) {
$enforcedLocation = preg_replace(
"#^${currentProtocol}#",
"#^{$currentProtocol}#",
$desiredProtocol ?? '',
$this->AbsoluteLink() ?? ''
);