diff options
author | Thomas Lange <code@nerdmind.de> | 2018-01-28 01:58:48 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2018-01-28 01:58:48 +0100 |
commit | c6bd37658cdae7e1dcd3ff4664c7e8a84a77bba7 (patch) | |
tree | 27effda9a29dddd6129f519f50c4d9162885f984 | |
parent | aa8b6c982673f3c2ffcb27cdada534c7acdf302b (diff) | |
download | bigpipe-c6bd37658cdae7e1dcd3ff4664c7e8a84a77bba7.tar.gz bigpipe-c6bd37658cdae7e1dcd3ff4664c7e8a84a77bba7.tar.xz bigpipe-c6bd37658cdae7e1dcd3ff4664c7e8a84a77bba7.zip |
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".
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 |