fix cleanUrl to add http:// prefix

This commit is contained in:
yequari 2023-07-30 01:18:37 -07:00
parent c09d870b40
commit 7b80b5ddeb
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ func (app *application) cleanUrl(url string) string {
s := strings.TrimPrefix(url, "http://")
s = strings.TrimPrefix(s, "https://")
s = path.Base(path.Clean(s))
s = "http://" + s
return s
}