mirror of
https://github.com/silverstripe/silverstripe-iframe
synced 2024-10-22 09:05:51 +00:00
ENH PHP 8.2 compatibility
This commit is contained in:
parent
da859a967d
commit
ad4342f1d0
@ -15,7 +15,7 @@ class IFramePageController extends PageController
|
||||
$desiredProtocol = $this->ForceProtocol;
|
||||
if ($desiredProtocol && $currentProtocol !== $desiredProtocol) {
|
||||
$enforcedLocation = preg_replace(
|
||||
"#^${currentProtocol}#",
|
||||
"#^{$currentProtocol}#",
|
||||
$desiredProtocol ?? '',
|
||||
$this->AbsoluteLink() ?? ''
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user