mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-08 03:34:02 +02:00
brmd::Alphasign: Improved input checking
This commit is contained in:
parent
1022ae7ddd
commit
e7a03df5ae
1 changed files with 2 additions and 0 deletions
|
@ -837,6 +837,8 @@ sub text {
|
|||
my ($heap, $self, $mode, $string) = (@_[HEAP, OBJECT, ARG0, ARG1]);
|
||||
$mode = $modes{$mode};
|
||||
$self->{last_text} = $string;
|
||||
$string = substr($string, 0, 256);
|
||||
$string =~ s/[\000-\037]//g;
|
||||
$string =~ s/<\/(.*?)>/$markup{$1}->[1]/gei;
|
||||
$string =~ s/<(.*?)>/$markup{$1}->[0]/gei;
|
||||
$_[KERNEL]->yield('rawtext', $mode, $string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue