mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Move ChangeDir() and MakeDir() from CUtils to CDir
Those function were not modified. Only change is the name. Those *Dir() functions really made no sense in CUtils when there is FileUtils stuff. They really fit much better into here. I'll bet they'll make new friends fast. I mean, why shouldn't they? Uhm... sorry ;) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1044 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+2
-2
@@ -1020,7 +1020,7 @@ void CClient::UserCommand(const CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
sAbsolutePath = CUtils::ChangeDir(m_pUser->GetDLPath(), sFile, CZNC::Get().GetHomePath());
|
||||
sAbsolutePath = CDir::ChangeDir(m_pUser->GetDLPath(), sFile, CZNC::Get().GetHomePath());
|
||||
|
||||
if (sAbsolutePath.Left(sAllowedPath.length()) != sAllowedPath) {
|
||||
PutStatus("Illegal path.");
|
||||
@@ -1040,7 +1040,7 @@ void CClient::UserCommand(const CString& sLine) {
|
||||
return;
|
||||
}
|
||||
|
||||
sAbsolutePath = CUtils::ChangeDir(m_pUser->GetDLPath(), sFile, CZNC::Get().GetHomePath());
|
||||
sAbsolutePath = CDir::ChangeDir(m_pUser->GetDLPath(), sFile, CZNC::Get().GetHomePath());
|
||||
|
||||
if (sAbsolutePath.Left(sAllowedPath.length()) != sAllowedPath) {
|
||||
PutStatus("Illegal path.");
|
||||
|
||||
Reference in New Issue
Block a user