Skip to content
Snippets Groups Projects
Commit 0e580b53 authored by rswindell's avatar rswindell
Browse files

Sanity-check: If string passed to show_atcode() does not start with an '@',

just immediately return 0.
parent 251cb3c2
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,8 @@ int sbbs_t::show_atcode(const char *instr, JSObject* obj)
long pmode = 0;
const char *cp;
if(*instr != '@')
return 0;
SAFECOPY(str,instr);
tp=strchr(str+1,'@');
if(!tp) /* no terminating @ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment