From 41d285234f1385d5ecb2ce84a6132c697f174b63 Mon Sep 17 00:00:00 2001 From: "Maury M. Marques" Date: Fri, 24 Jun 2011 00:40:25 -0300 Subject: [PATCH] Unnecessary str_replace Signed-off-by: Mark Story --- cake/libs/sanitize.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cake/libs/sanitize.php b/cake/libs/sanitize.php index 86a70fafc..09305e16a 100644 --- a/cake/libs/sanitize.php +++ b/cake/libs/sanitize.php @@ -249,7 +249,7 @@ class Sanitize { return $data; } else { if ($options['odd_spaces']) { - $data = str_replace(chr(0xCA), '', str_replace(' ', ' ', $data)); + $data = str_replace(chr(0xCA), '', $data); } if ($options['encode']) { $data = Sanitize::html($data, array('remove' => $options['remove_html'])); @@ -260,7 +260,6 @@ class Sanitize { if ($options['carriage']) { $data = str_replace("\r", "", $data); } - if ($options['unicode']) { $data = preg_replace("/&#([0-9]+);/s", "&#\\1;", $data); }