Commit 53dac6f
committed
fix(envlite): normalize CRLF in wp-config sample before render
wp-config-sample.php ships CRLF in tree, so the previous render path
mixed the sample's CRLF lines with envlite's LF-only injections
(WP_HOME, WP_SITEURL, the fetched salts block). The rendered file is
then ugly and — worse — the manifest hash recorded for src/wp-config.php
becomes sensitive to whatever EOL conversion the user's git client
applied at checkout time, which would spuriously trip envlite's drift
prompt on machines with different settings.
Strip \\r\\n to \\n once at the top of envlite_phase7_render so output
is LF-only regardless of how the sample was checked out. Pinned by a
regression test asserting the rendered config contains no \\r\\n.1 parent 8246054 commit 53dac6f
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
651 | 659 | | |
652 | 660 | | |
653 | 661 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
0 commit comments