Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #6825: Long free text field improper escape sequence for …
…Microsoft SQL
  • Loading branch information
c-schmitz committed Nov 6, 2012
1 parent 8248f40 commit 14a65ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -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.
Expand Down

0 comments on commit 14a65ae

Please sign in to comment.