We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92da140 + 8cce75e commit 04e7a9dCopy full SHA for 04e7a9d
lib/sys/lib/telnet.c
@@ -99,9 +99,14 @@ static void telnet_subnegotiation(string subnegotiation) {
99
static void receive(mixed tls, string str) {
100
string *strings, head, pre;
101
int i, len;
102
+ string rc;
103
104
/* find telnet commands in input */
- ({ strings, partial }) = TELNET_PARSER->parse_telnet(partial + str);
105
+ /* stop jerks from running cat /dev/urandom | nc mudname 4000 and crashing */
106
+ rc = catch(({ strings, partial }) = TELNET_PARSER->parse_telnet(partial + str));
107
+ if (rc) {
108
+ destruct_object(this_player());
109
+ }
110
111
for (i = 0; i < sizeof(strings); i++) {
112
/*
0 commit comments