fix file path
This commit is contained in:
		
							parent
							
								
									449108dc1f
								
							
						
					
					
						commit
						082073acda
					
				| 
						 | 
					@ -17,7 +17,7 @@ type fileInfo struct {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Execute sth
 | 
					// Execute sth
 | 
				
			||||||
func Execute(w http.ResponseWriter, r *http.Request) (int, error) {
 | 
					func Execute(w http.ResponseWriter, r *http.Request) (int, error) {
 | 
				
			||||||
	filename := strings.Replace(r.URL.Path, "admin/edit/", "", 1)
 | 
						filename := strings.Replace(r.URL.Path, "/admin/edit/", "", 1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if r.Method == "POST" {
 | 
						if r.Method == "POST" {
 | 
				
			||||||
		r.ParseForm()
 | 
							r.ParseForm()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue