diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/weepinbell/utils/url.clj | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/weepinbell/utils/url.clj b/src/weepinbell/utils/url.clj index 5fe2b78..88c9fea 100644 --- a/src/weepinbell/utils/url.clj +++ b/src/weepinbell/utils/url.clj @@ -10,6 +10,7 @@ host (. IDN toASCII (-> url .getHost (string/replace "www." "")))]
(and (string/includes? host ".") ;; do not accept localhost and other non-TLD names
(or (= scheme "http") (= scheme "https"))))
+ (catch ClassCastException _ false) ;; not string
(catch MalformedURLException _ false)
(catch URISyntaxException _ false)))
|
