fixes #529, protect delete_orphans against CSRF

This commit is contained in:
plegall
2016-09-27 14:25:13 +02:00
parent 18791eb440
commit 6a8e158206
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -66,6 +66,8 @@ DELETE FROM '.CADDIE_TABLE.'
if ('delete_orphans' == $_GET['action'])
{
check_pwg_token();
$deleted_count = delete_elements(get_orphans(), true);
if ($deleted_count > 0)