mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-07 03:42:13 +02:00
clean up \n in the text pasted in the readline fn
This commit is contained in:
parent
a663f0b941
commit
1ba2615f0d
1
h-m-m
1
h-m-m
|
@ -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);
|
$title = mb_ereg_replace("[\000-\010\013-\037\177]|".BOM,'',$title);
|
||||||
$cursor += mb_strlen($in);
|
$cursor += mb_strlen($in);
|
||||||
// the input content can be longer than one character if
|
// the input content can be longer than one character if
|
||||||
|
|
Loading…
Reference in a new issue