From 282ca263192febb6084142bf078fb489bc6b6eb8 Mon Sep 17 00:00:00 2001 From: phpnut Date: Thu, 23 Nov 2006 10:13:36 +0000 Subject: [PATCH] Adding fix for Ticket #1666 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3936 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/sanitize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/sanitize.php b/cake/libs/sanitize.php index 784ce3c85..cdb7f44cc 100644 --- a/cake/libs/sanitize.php +++ b/cake/libs/sanitize.php @@ -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 (?)