diff options
| author | lolcat <will@lolcat.ca> | 2025-09-06 01:49:22 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2025-09-06 01:49:22 -0400 |
| commit | de328fff1b519bf81902b0f8f41e8c15ab391f64 (patch) | |
| tree | 35e3d8472c540809120f4aeafa670c53e3f65280 | |
| parent | 8613c1e0f49f44e54d0057b379cef127d32c3e1d (diff) | |
messed up json extractor
| -rw-r--r-- | lib/fuckhtml.php | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php index 08ca8e3..96241dc 100644 --- a/lib/fuckhtml.php +++ b/lib/fuckhtml.php @@ -554,14 +554,12 @@ class fuckhtml{ case "\"": case "'": if( - $i > 2 || + $i > 2 && // only check if a quote could be there ( - ( - $json[$i - 1] === "\\" && - $json[$i - 2] === "\\" - ) || - $json[$i - 1] !== "\\" - ) + $json[$i - 1] === "\\" && + $json[$i - 2] === "\\" + ) || + $json[$i - 1] !== "\\" ){ // found a non-escaped quote |
