ソースを参照

Z991431-1598 #comment fix: 远程维护delete功能异常,路径转换,/和\的问题

陈良瑜80374463 4 年 前
コミット
b6228f12f8
1 ファイル変更8 行追加1 行削除
  1. 8 1
      Module/mod_RomoteController/RemoteControllerCnn.cpp

+ 8 - 1
Module/mod_RomoteController/RemoteControllerCnn.cpp

@@ -1269,7 +1269,14 @@ ErrorCodeEnum CRemoteControllerCnn::HandleOperateDiskReq(const CSmartPointer<IPa
 		if (curTmp[0] == '/')
 			rvcReq.current = curTmp;
 		else
-			rvcReq.current = CSimpleStringA("/") + curTmp;
+		{
+			std::string tmpStr = curTmp.GetData();
+			std::replace(tmpStr.begin(), tmpStr.end(), '\\', '/');
+			rvcReq.current = CSimpleStringA("/") + tmpStr.c_str();
+		}
+			
+
+		
 #endif
 		rvcReq.mode = req.mode;
 		rvcReq.attribute = req.attribute;