We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bb0b60 commit 7514c91Copy full SHA for 7514c91
cmd/wrtagweb/main.go
@@ -21,6 +21,7 @@ import (
21
"net/url"
22
"os"
23
"os/signal"
24
+ "path"
25
"path/filepath"
26
"runtime"
27
"strconv"
@@ -213,7 +214,7 @@ func main() {
213
214
215
useMBID := r.FormValue("mbid")
216
if strings.Contains(useMBID, "/") {
- useMBID = filepath.Base(useMBID) // accept release URL
217
+ useMBID = path.Base(useMBID) // accept release URL
218
}
219
220
ctx := r.Context()
@@ -310,7 +311,7 @@ func main() {
310
311
path = filepath.Clean(path)
312
313
314
315
316
317
0 commit comments