1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-19 02:41:30 +00:00

fix url checking, param sanitizing in feed & cat editors, fix browser_has_opacity()

This commit is contained in:
Andrew Dolgov
2006-05-19 04:10:58 +01:00
parent caa53a7cb1
commit 605f7d463d
4 changed files with 17 additions and 10 deletions

View File

@@ -1,7 +1,8 @@
var hotkeys_enabled = true;
function browser_has_opacity() {
return navigator.userAgent.match("Gecko") || navigator.userAgent.match("Opera");
return navigator.userAgent.match("Gecko") != null ||
navigator.userAgent.match("Opera") != null;
}
function exception_error(location, e) {
@@ -1054,3 +1055,6 @@ function toggleSubmitNotEmpty(e, submit_id) {
}
}
function isValidURL(s) {
return s.match("http://") != null || s.match("https://") != null;
}