Minor security fix (exposes path of config file to opers)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@465 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2004-04-09 11:24:38 +00:00
parent ed184bd151
commit 5a7a382637

View File

@ -4043,7 +4043,7 @@ void handle_list(char **parameters, int pcnt, userrec *user)
void handle_rehash(char **parameters, int pcnt, userrec *user)
{
WriteServ(user->fd,"382 %s %s :Rehashing",user->nick,CONFIG_FILE);
WriteServ(user->fd,"382 %s %s :Rehashing",user->nick,CleanFilename(CONFIG_FILE));
ReadConfig();
FOREACH_MOD OnRehash();
WriteOpers("%s is rehashing config file %s",user->nick,CleanFilename(CONFIG_FILE));