Commit 9149879
committed
🐛 Bug Fix
Layout content merge: Fixed preg_replace backreference issue in layout content insertion
- preg_replace(pattern, $html, $layoutHtml) treated $ and \ in page content as regex backreferences
- Content containing $2a$04$... (e.g., bcrypt hashes) was corrupted: $2 -> empty, $04 -> empty -> result: a$.j0S6...
- Fix: Escape \ and $ in replacement string using str_replace before passing to preg_replace1 parent f8cdf4c commit 9149879
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments