fix url checking, param sanitizing in feed & cat editors, fix browser_has_opacity()
This commit is contained in:
@@ -282,8 +282,7 @@ function addFeed() {
|
||||
|
||||
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...");
|
||||
@@ -746,6 +745,11 @@ function feedEditSave() {
|
||||
notify("Feed title cannot be blank.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isValidURL(link)) {
|
||||
alert("Feed URL is invalid.");
|
||||
return;
|
||||
}
|
||||
|
||||
var auth_login = document.getElementById("iedit_login").value;
|
||||
var auth_pass = document.getElementById("iedit_pass").value;
|
||||
|
||||
Reference in New Issue
Block a user