From 9a7bb5ea47150a3f89e46e4d00b02a4a5c493a76 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 2 Apr 2016 21:17:43 +0200 Subject: fix upload cleaner if tempdir ist specified without trailing / diff --git a/src/rhimportd/uploadWeb.go b/src/rhimportd/uploadWeb.go index 8e7dfb7..6d6e56e 100644 --- a/src/rhimportd/uploadWeb.go +++ b/src/rhimportd/uploadWeb.go @@ -170,7 +170,7 @@ func webUploadCleanerRun(dir *os.File, conf *rhimport.Config, maxAge time.Durati continue } - if err := os.RemoveAll(conf.TempDir + entry.Name()); err != nil { + if err := os.RemoveAll(conf.TempDir + "/" + entry.Name()); err != nil { rhl.Printf("webUploadCleaner: deleting dir '%s' failed: %v", entry.Name(), err) continue } diff --git a/web-static/upload-form.html b/web-static/upload-form.html index bbb397c..8d41a6e 100644 --- a/web-static/upload-form.html +++ b/web-static/upload-form.html @@ -1,12 +1,13 @@ + rhimportd File Upload

rhimportd File Upload

-
+
-- cgit v0.10.2