Skip to content

Commit

Permalink
Fixed usage of deprecated mysql_escape_string
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Renkema authored and Iltar van der Berg committed Oct 7, 2014
1 parent eab74af commit ad4ba0b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public function hasSize($sqlType)
*/
public function disconnectedEscapeText($text)
{
if (function_exists('mysql_escape_string')) {
return mysql_escape_string($text);
if (function_exists('mysql_real_escape_string')) {
return mysql_real_escape_string($text);
} else {
return addslashes($text);
}
Expand Down

0 comments on commit ad4ba0b

Please sign in to comment.