From c6bd37658cdae7e1dcd3ff4664c7e8a84a77bba7 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Sun, 28 Jan 2018 01:58:48 +0100 Subject: Remove superfluous item from pattern array The string "\r\n" within the search array is superfluous because it is already covered by the single "\r" and "\n". --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index b866994..e920ef1 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3,6 +3,6 @@ # Remove line breaks and tabs from a string #=============================================================================== function removeLineBreaksAndTabs($string) { - return str_replace(["\r\n", "\r", "\n", "\t"], NULL, $string); + return str_replace(["\r", "\n", "\t"], NULL, $string); } ?> \ No newline at end of file -- cgit v1.2.3