HTTPSock: Use TrimLeft() instead of a combination of Left() and LeftChomp()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1364 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-02-02 15:24:48 +00:00
parent cd88623cbe
commit 649dca204f
+1 -3
View File
@@ -116,9 +116,7 @@ bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) {
CString sFilePath = sFileName;
if (!m_sDocRoot.empty()) {
while (sFilePath.Left(1) == "/") {
sFilePath.LeftChomp(1);
}
sFilePath.TrimLeft("/");
sFilePath = CDir::ChangeDir(m_sDocRoot, sFilePath, m_sDocRoot);