mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 00:48:25 +00:00
Adding fix for Ticket #1666
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3936 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
984ceb3b51
commit
282ca26319
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ class Sanitize{
|
|||
//Double-check special chars and remove carriage returns
|
||||
//For increased SQL security
|
||||
$val = preg_replace("/\\\$/", "$", $val);
|
||||
$val = preg_replace("/\r/", "", $val);
|
||||
$val = preg_replace("/\r\n/", "", $val);
|
||||
$val = str_replace("!", "!", $val);
|
||||
$val = str_replace("'", "'", $val);
|
||||
//Allow unicode (?)
|
||||
|
|
Loading…
Add table
Reference in a new issue