Skip to content

Commit 3385516

Browse files
committed
fix for CharacterTest::testPropertyWithQuotes
1 parent 0aa6751 commit 3385516

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PHPCR/Util/QOM/Sql2ToQomQueryConverter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ protected function parseLiteral()
700700
throw new \Exception("Syntax error: unterminated quoted string $token in '{$this->sql2}'");
701701
}
702702
$token = substr($token, 1, -1);
703+
$token = str_replace('\\'.$quoteString, $quoteString, $token);
703704
} else if (is_numeric($token)){
704705
$token = strpos($token, '.') === false ? (int) $token : (float) $token;
705706
} else if ($token == 'true') {

0 commit comments

Comments
 (0)