mirror of
https://github.com/silverstripe/silverstripe-iframe
synced 2024-10-22 11:05:51 +02:00
Merge pull request #64 from creative-commoners/pulls/3/php82
ENH PHP 8.2 compatibility
This commit is contained in:
commit
a9133931d8
@ -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…
Reference in New Issue
Block a user