Skip to content

Commit

Permalink
[DoctrineBridge] Fixed non-utf-8 recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
saro0h authored and fabpot committed Mar 16, 2013
1 parent 6c0d2b9 commit 67fbbac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php
Expand Up @@ -56,7 +56,7 @@ public function startQuery($sql, array $params = null, array $types = null)
}

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

0 comments on commit 67fbbac

Please sign in to comment.