change meowurl scheme to meow://http//url for safer uri parsing
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-04-12 14:37:20 +02:00
parent 5aec7b3ad4
commit 6cfc54d943
4 changed files with 12 additions and 9 deletions

View File

@ -59,7 +59,7 @@ func CreateServerFromUid(uid string) *Server {
// CreateServerFromMeowUrl creates a server from a meow url, ex : meow://mylogin:mypassword@https://my.meowserver.example:8443/meow/
func CreateServerFromMeowUrl(meowurl string) *Server {
uid := meowurl[7:]
uid := strings.Replace(meowurl[7:], "//", "://", 1)
return CreateServerFromUid(uid)
}