Skip to content

Commit 4c304fd

Browse files
committed
Merge pull request #82 from phpcr/fix_parsing_of_escaped_double_quote
fix for CharacterTest::testPropertyWithQuotes
2 parents 0d863c3 + 3385516 commit 4c304fd

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)