From dcdb761e1741de28774f9a38920e62aad8c45af1 Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Thu, 19 Jan 2012 00:14:48 +0000 Subject: [PATCH] Used strict comparision. --- src/Composer/Json/JsonFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Json/JsonFile.php b/src/Composer/Json/JsonFile.php index 7201c80e0..fd43c9148 100644 --- a/src/Composer/Json/JsonFile.php +++ b/src/Composer/Json/JsonFile.php @@ -130,7 +130,7 @@ class JsonFile $char = substr($json, $i, 1); // Are we inside a quoted string? - if ('"' === $char && ('\\' !== $prevChar || '\\\\' == substr($json, $i-2, 2))) { + if ('"' === $char && ('\\' !== $prevChar || '\\\\' === substr($json, $i-2, 2))) { $outOfQuotes = !$outOfQuotes; } elseif (':' === $char && $outOfQuotes) { // Add a space after the : character