Browse Source

修正获取反斜杠问题

master ver_1.0.1
453530270@qq.com 2 years ago
parent
commit
6c174f0f6b
  1. BIN
      fssc/fssc
  2. 3
      fssc/internal/handler/webconsole.go
  3. 3
      fssc/web/wbconsole.tmpl

BIN
fssc/fssc

Binary file not shown.

3
fssc/internal/handler/webconsole.go

@ -33,6 +33,9 @@ func WebConsole(w http.ResponseWriter, r *http.Request) {
abupath = filepath.Join(abupath, abfname)
}
// 转成unix 风格
abupath = filepath.ToSlash(abupath)
// upath := strings.TrimSuffix(abupath, "console")
// serve download page for send

3
fssc/web/wbconsole.tmpl

@ -192,7 +192,7 @@
// 获取目标服务器的信息
var gescinfo=function(scip){
// 客户端的状态地址
var url="http://"+scip+":9099/sc?p="+urlpath;
var url="http://"+scip+":9099/sc?p="+urlpath.replace("/\\/g","\/");
//
var html="";
$.getJSON(url,function(res){
@ -231,7 +231,6 @@
//同步文件
$(".gsbtn").on("click",function(){
alert("dafds");
var ff = $(this).attr("fid");
var fpa=$(this).attr("fpa");
// build post body

Loading…
Cancel
Save