clean up \n in the text pasted in the readline fn

This commit is contained in:
nadrad 2022-10-29 12:18:55 +02:00
parent a663f0b941
commit 1ba2615f0d

1
h-m-m
View file

@ -1356,6 +1356,7 @@ function magic_readline(&$mm, $title)
)
;
$title = str_replace(["\n","\r","\t"],[" ",""," "],$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