QA fixes
[civicrm-core.git] / CRM / Core / I18n.php
index 2328e89a4014845277ea5e12e852d59ab66964ba..8f599ab7e0ed38fc1d58525d8538dfee7b126828 100644 (file)
@@ -225,7 +225,7 @@ class CRM_Core_I18n {
     // in such cases we return early, only doing SQL/JS escaping
     if (isset($params['skip']) and $params['skip']) {
       if (isset($escape) and ($escape == 'sql')) {
-        $text = mysql_escape_string($text);
+        $text = CRM_Core_DAO::escapeString($text);
       }
       if (isset($escape) and ($escape == 'js')) {
         $text = addcslashes($text, "'");
@@ -322,7 +322,7 @@ class CRM_Core_I18n {
 
     // escape SQL if we were asked for it
     if (isset($escape) and ($escape == 'sql')) {
-      $text = mysql_escape_string($text);
+      $text = CRM_Core_DAO::escapeString($text);
     }
 
     // escape for JavaScript (if requested)