Skip to content

Commit

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

Please sign in to comment.