diff --git a/application/helpers/common_helper.php b/application/helpers/common_helper.php index 64052273542..e07a3daab4e 100644 --- a/application/helpers/common_helper.php +++ b/application/helpers/common_helper.php @@ -3190,7 +3190,7 @@ function HTMLEscape($str) { */ function dbQuoteAll($value) { - return '\'' . addslashes($value) . '\''; + return Yii::app()->db->quoteValue($value); } // make a string safe to include in a JavaScript String parameter.