[TASK] Security fix

This commit is contained in:
Kanti 2015-01-08 13:38:23 +01:00
commit 1fe0420748

View file

@ -995,7 +995,7 @@ post('/admin/import', function () {
$url = from($_REQUEST, 'url');
$credit = from($_REQUEST, 'credit');
if (!empty($url)) {
if (login() && !empty($url) && $proper) {
get_feed($url, $credit);
$log = get_feed($url, $credit);