aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/file
diff options
context:
space:
mode:
authorGravatar Alexey Uzhva2007-03-04 09:21:11 +0000
committerGravatar Alexey Uzhva2007-03-04 09:21:11 +0000
commit7e6cbc5bb7cf0b0459d6fbf014f0c8663e28e0e6 (patch)
treebe7f368e0370072c4d5a71321e104e9281a414f5 /src/modules/file
parentquick fix (diff)
downloadKVIrc-7e6cbc5bb7cf0b0459d6fbf014f0c8663e28e0e6.tar.gz
KVIrc-7e6cbc5bb7cf0b0459d6fbf014f0c8663e28e0e6.tar.bz2
KVIrc-7e6cbc5bb7cf0b0459d6fbf014f0c8663e28e0e6.zip
CRITICAL bugfix. Remote exploit: /ctcp -n NICK avatar z:/test.jpg; where z: - unexisting drive letter
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@406 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/file')
-rw-r--r--src/modules/file/libkvifile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/file/libkvifile.cpp b/src/modules/file/libkvifile.cpp
index 6e77329ce..90eaaa97e 100644
--- a/src/modules/file/libkvifile.cpp
+++ b/src/modules/file/libkvifile.cpp
@@ -1207,7 +1207,7 @@ static bool file_kvs_fnc_extractfilename(KviKvsModuleFunctionCall * c)
KVSM_PARAMETERS_BEGIN(c)
KVSM_PARAMETER("filepath",KVS_PT_NONEMPTYSTRING,0,szName)
KVSM_PARAMETERS_END(c)
- KviFileUtils::adjustFilePath(szName);
+ KviFileUtils::extractFileName(szName);
KviQString::cutToLast(szName,KVI_PATH_SEPARATOR_CHAR);
c->returnValue()->setString(szName);
return true;