diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-16 13:44:45 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-16 13:44:45 +0100 |
| commit | 0aa2d07cab08bc3ec33f3ff227dae5fc525d68d9 (patch) | |
| tree | cd703e32797e98a3cfe47532e0d32d62f642caa8 /includes | |
| parent | 80e5e4ba2faea909753fcae960e752797e912dc0 (diff) | |
| download | liberty-0aa2d07cab08bc3ec33f3ff227dae5fc525d68d9.tar.gz liberty-0aa2d07cab08bc3ec33f3ff227dae5fc525d68d9.tar.bz2 liberty-0aa2d07cab08bc3ec33f3ff227dae5fc525d68d9.zip | |
Fix parseData corruption of raw 'data' element
Diffstat (limited to 'includes')
| -rwxr-xr-x | includes/classes/LibertyContent.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/classes/LibertyContent.php b/includes/classes/LibertyContent.php index df58825..0f67e5e 100755 --- a/includes/classes/LibertyContent.php +++ b/includes/classes/LibertyContent.php @@ -2860,8 +2860,9 @@ class LibertyContent extends LibertyBase implements BitCacheable { } protected function parseData() { - // get the data into place - $this->mInfo['parsed_data'] = self::parseDataHash( $this->mInfo ); + // Copy mInfo so parseDataHash's placeholder substitution does not corrupt mInfo['data'] + $copy = $this->mInfo; + $this->mInfo['parsed_data'] = self::parseDataHash( $copy ); } /** |
