aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuckhtml.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2025-09-06 01:49:22 -0400
committerlolcat <will@lolcat.ca>2025-09-06 01:49:22 -0400
commitde328fff1b519bf81902b0f8f41e8c15ab391f64 (patch)
tree35e3d8472c540809120f4aeafa670c53e3f65280 /lib/fuckhtml.php
parent8613c1e0f49f44e54d0057b379cef127d32c3e1d (diff)
messed up json extractor
Diffstat (limited to 'lib/fuckhtml.php')
-rw-r--r--lib/fuckhtml.php12
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage