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;
|
$desiredProtocol = $this->ForceProtocol;
|
||||||
if ($desiredProtocol && $currentProtocol !== $desiredProtocol) {
|
if ($desiredProtocol && $currentProtocol !== $desiredProtocol) {
|
||||||
$enforcedLocation = preg_replace(
|
$enforcedLocation = preg_replace(
|
||||||
"#^${currentProtocol}#",
|
"#^{$currentProtocol}#",
|
||||||
$desiredProtocol ?? '',
|
$desiredProtocol ?? '',
|
||||||
$this->AbsoluteLink() ?? ''
|
$this->AbsoluteLink() ?? ''
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user