mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
fixes #529, protect delete_orphans against CSRF
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user