debug() send_uptime() urcapture is_safepath

This commit is contained in:
joonicks
2018-03-14 03:02:30 +01:00
parent 2d7d789621
commit fb70029b56
29 changed files with 575 additions and 164 deletions

View File

@@ -551,7 +551,7 @@ void ctcp_dcc(char *from, char *to, char *rest)
debug("(ctcp_dcc) rest: `%s'\n",nullstr(rest));
#endif /* DEBUG */
filename = chop(&rest);
if (!is_safepath(filename))
if (is_safepath(filename,FILE_MUST_EXIST) != FILE_IS_SAFE)
{
#ifdef DEBUG
debug("(ctcp_dcc) filename `%s' is not safe\n",filename);