summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-09 11:24:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-09 11:24:38 +0000
commit5a7a3826371642ffed8a2cc912944fb1d2ecfcbc (patch)
tree63d1dfb818e133ab543029a93847dc75ada8541a
parented184bd1510c4cff6a53a7a5bfafaac48eece9e0 (diff)
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
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
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));