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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user