mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Unnecessary str_replace
Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
a0c08cdba8
commit
41d285234f
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue