Skip to content

Commit a7cb98f

Browse files
committed
Merge pull request #26 from mdekrijger/patch-1
Dot not escaped in path eval in Sql2Generator.php
2 parents c3f2531 + 383b208 commit a7cb98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPCR/Util/QOM/Sql2Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function evalPath($path)
325325
$sql2 = $path;
326326
// only ensure proper quoting if the user did not quote himself, we trust him to get it right if he did.
327327
if (substr($path, 0,1) !== '[' && substr($path, -1) !== ']') {
328-
if (false !== strpos($sql2, ' ')) {
328+
if (false !== strpos($sql2, ' ') || false !== strpos($sql2, '.')) {
329329
$sql2 = '"' . $sql2 . '"';
330330
}
331331
$sql2 = '[' . $sql2 . ']';

0 commit comments

Comments
 (0)