diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-24 20:22:51 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-24 20:22:51 +0900 |
| commit | 384b81c86d371e7247f2b7e7a5f3b6f5a5f1c919 (patch) | |
| tree | c921094c796ff5a5e6540936341671ffd6df2c3a /crates/shirabe/tests/plugin/plugin_installer_test.rs | |
| parent | dacc1cb0d7d1397701166571d74580a706c2ce73 (diff) | |
| download | php-shirabe-384b81c86d371e7247f2b7e7a5f3b6f5a5f1c919.tar.gz php-shirabe-384b81c86d371e7247f2b7e7a5f3b6f5a5f1c919.tar.zst php-shirabe-384b81c86d371e7247f2b7e7a5f3b6f5a5f1c919.zip | |
fix(php-shim): keep literal '>' outside tags in strip_tags
The b'>' match arm in strip_tags's state machine never pushed the
character to the output buffer when encountered outside a tag (state
0), unlike every other special-character arm (!, ?, -, and the
catch-all) which does push in that state. Every literal '>' not part
of an HTML-like tag was silently dropped.
This corrupted "=>" into "=" in Composer's operation trace strings
(e.g. "Upgrading foo/bar (1.0.0 => 1.1.0)"), which go through
strip_tags to remove the <info>/<comment> markup before comparison,
un-ignoring 82 integration tests that were asserting on that exact
arrow.
Diffstat (limited to 'crates/shirabe/tests/plugin/plugin_installer_test.rs')
0 files changed, 0 insertions, 0 deletions
