Skip to content

Commit 3235487

Browse files
committed
Disallow programs starting with "OUTPUT"
for primitive loop protection
1 parent 2267d41 commit 3235487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evalbot.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ package Evalbot;
5252
use Encode qw(encode_utf8);
5353
use charnames qw(:full);
5454
my $prefix = '';
55-
my $postfix = qr/:\s/;
55+
my $postfix = qr/:\s(?!OUTPUT)/;
5656

5757
my $home = glob '~';
5858
my $max_output_len = 290;

0 commit comments

Comments
 (0)