Style fixes.
authorMattias Michaux <mattias.michaux@gmail.com>
Wed, 25 May 2016 19:26:22 +0000 (21:26 +0200)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 14 Sep 2016 00:53:21 +0000 (10:53 +1000)
CRM/Core/DAO.php

index 3c8cbb65ebaa91323d5b46cbb688616652701e77..c23fd9355bcce280f52f9ac989506ddcdda08e1b 100644 (file)
@@ -1639,8 +1639,8 @@ SELECT contact_id
       if (!defined('CIVICRM_DSN')) {
         // See http://php.net/manual/en/mysqli.real-escape-string.php for the
         // list of characters mysqli_real_escape_string escapes.
-        $search = array("\\",  "\x00", "\n",  "\r",  "'",  '"', "\x1a");
-        $replace = array("\\\\","\\0","\\n", "\\r", "\'", '\"', "\\Z");
+        $search = array("\\", "\x00", "\n", "\r", "'", '"', "\x1a");
+        $replace = array("\\\\", "\\0", "\\n", "\\r", "\'", '\"', "\\Z");
         return str_replace($search, $replace, $string);
       }
       $_dao = new CRM_Core_DAO();