QA fixes
[civicrm-core.git] / CRM / Core / I18n.php
index 7d0bcd208276a132309f3219b79b344c5558181b..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_real_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_real_escape_string($text);
+      $text = CRM_Core_DAO::escapeString($text);
     }
 
     // escape for JavaScript (if requested)