From 5a7a3826371642ffed8a2cc912944fb1d2ecfcbc Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Apr 2004 11:24:38 +0000 Subject: 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 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 0b348f529..edec94250 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -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)); -- cgit v1.2.3