From 605f7d463dc68eccc02c77f989302d7b9035b456 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 May 2006 04:10:58 +0100 Subject: fix url checking, param sanitizing in feed & cat editors, fix browser_has_opacity() --- tt-rss.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index 528a0000b..6a3171469 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -538,8 +538,7 @@ function qafAdd() { if (link.value.length == 0) { alert("Error: No feed URL given."); - } else if (link.value.match("http://") == null && - link.value.match("https://") == null) { + } else if (!isValidURL(link.value)) { alert("Error: Invalid feed URL."); } else { notify("Adding feed..."); -- cgit v1.2.3