Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67fbbac

Browse files
saro0hfabpot
authored andcommitted
[DoctrineBridge] Fixed non-utf-8 recognition
1 parent 6c0d2b9 commit 67fbbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function startQuery($sql, array $params = null, array $types = null)
5656
}
5757

5858
// non utf-8 strings break json encoding
59-
if (null === preg_match('#[^\p{L}\p{N} ]#u', $params[$index])) {
59+
if (!preg_match('#[\p{L}\p{N} ]#u', $params[$index])) {
6060
$params[$index] = self::BINARY_DATA_VALUE;
6161
continue;
6262
}

0 commit comments

Comments
 (0)