Commit 815c8ca
fix: validate UTF-8 input before regex matching
Ensures invalid UTF-8 strings are sanitized before reaching preg_match
with the /u flag, preventing silent regex failures.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 57fa14a commit 815c8ca
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| |||
0 commit comments