excluded \t and \n from the text cleaner

This commit is contained in:
nadrad 2022-09-16 20:53:04 +02:00
parent c104792e6a
commit 9c0582889e

6
h-m-m
View file

@ -322,7 +322,7 @@ function decode_tree($lines, $root_id, $start_id)
$lines[$lid] =
mb_ereg_replace
(
"[\000-\037\177".BOM."]"
"[\000-\010\013-\037\177".BOM."]"
,''
,str_replace
(
@ -1294,7 +1294,7 @@ function magic_readline(&$mm, $title)
)
;
$title = mb_ereg_replace("[\000-\037\177".BOM."]",'',$title);
$title = mb_ereg_replace("[\000-\010\013-\037\177".BOM."]",'',$title);
$cursor += mb_strlen($in);
// the input content can be longer than one character if
// the user uses ctrl+shift+v to paste.
@ -2115,7 +2115,7 @@ function get_from_clipboard(&$mm)
return
mb_ereg_replace
(
"[\000-\037\177".BOM."]"
"[\000-\010\013-\037\177".BOM."]"
,''
,shell_exec($mm['clipboard']['read'])
)