fix broken feed icon upload (closes #459)
This commit is contained in:
parent
882311d9ad
commit
35b9844be1
|
@ -3,7 +3,7 @@ class Pref_Feeds extends Protected_Handler {
|
||||||
|
|
||||||
function csrf_ignore($method) {
|
function csrf_ignore($method) {
|
||||||
$csrf_ignored = array("index", "getfeedtree", "add", "editcats", "editfeed",
|
$csrf_ignored = array("index", "getfeedtree", "add", "editcats", "editfeed",
|
||||||
"savefeedorder");
|
"savefeedorder", "uploadicon");
|
||||||
|
|
||||||
return array_search($method, $csrf_ignored) !== false;
|
return array_search($method, $csrf_ignored) !== false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -795,7 +795,7 @@ function removeFeedIcon(id) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("uploadFeedIcon", e);
|
exception_error("removeFeedIcon", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue