소스 검색

messed up json extractor again

lolcat 10 달 전
부모
커밋
0b350d4d6e
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      lib/fuckhtml.php

+ 6 - 4
lib/fuckhtml.php

@@ -556,10 +556,12 @@ class fuckhtml{
 					if(
 						$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