fix SetURLBase URL contain colon str unused

This commit is contained in:
humboldt_xie 2021-09-08 11:24:49 +08:00 committed by Huin
parent aaf1a9757f
commit 72ec887a3d

View File

@ -184,7 +184,7 @@ func (uf *URLField) SetURLBase(urlBase *url.URL) {
str = "/" + str str = "/" + str
} }
refUrl, err := url.Parse(uf.Str) refUrl, err := url.Parse(str)
if err != nil { if err != nil {
uf.URL = url.URL{} uf.URL = url.URL{}
uf.Ok = false uf.Ok = false