Skip to content

Commit

Permalink
more fixes for the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NorHei committed Mar 3, 2016
1 parent 45b229d commit 4f4f38e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wbce/framework/class.wb.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ public function strip_slashes($input)
return stripslashes($input);
}

function strip_magic($input) {
if (get_magic_quotes_gpc() and is_string($input)) {
return stripslashes($input);
}
return $input;
}


// Escape backslashes for use with mySQL LIKE strings
public function escape_backslashes($input)
{
Expand Down

0 comments on commit 4f4f38e

Please sign in to comment.