mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-09-11 00:42:30 +00:00
Sync with mattermost 2.2.0 release
This commit is contained in:
12
vendor/github.com/mattermost/platform/model/utils.go
generated
vendored
12
vendor/github.com/mattermost/platform/model/utils.go
generated
vendored
@@ -367,15 +367,3 @@ func IsValidHttpUrl(rawUrl string) bool {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func IsValidHttpsUrl(rawUrl string) bool {
|
||||
if strings.Index(rawUrl, "https://") != 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
if _, err := url.ParseRequestURI(rawUrl); err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
Reference in New Issue
Block a user