Option to enable full snippets in push notifications

This commit is contained in:
Elias Nahum
2016-03-11 00:14:55 -03:00
parent d383ed2f8d
commit 1f5c8c4e4e
13 changed files with 210 additions and 7 deletions

View File

@@ -367,3 +367,15 @@ 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
}