mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
Don't allow .. in GET
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@596 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -860,6 +860,11 @@ void CClient::UserCommand(const CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sFile.find("..") != CString::npos) {
|
||||
PutStatus("Illegal path.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_pUser) {
|
||||
m_pUser->SendFile(GetNick(), sFile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user