瀏覽代碼

Automatically remove \r from file list

Gildas Chabot 4 年之前
父節點
當前提交
d4d0cb9568
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      pages/pages.go

+ 1 - 0
pages/pages.go

@@ -133,6 +133,7 @@ func Movie(c *movies.Collection) http.HandlerFunc {
133 133
 			}
134 134
 
135 135
 			if files := r.FormValue("files"); files != "" {
136
+				files = strings.ReplaceAll(files, "\r", "")
136 137
 				m.Files = strings.Split(files, "\n")
137 138
 				fmt.Println("Update with", m)
138 139
 				c.Update(m)