messed up json extractor
This commit is contained in:
1 parent
8613c1e0f4
commit
de328fff1b
1 file changed
+5
-7
+5
-7
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user