Deleted GET from admin_loader

This commit is contained in:
Visman 2017-01-07 18:18:08 +07:00
parent 73da1ec46e
commit 318be89a8a

View file

@ -18,7 +18,7 @@ if (!$pun_user['is_admmod'])
message($lang_common['No permission'], false, '403 Forbidden');
// The plugin to load should be supplied via GET
$plugin = isset($_GET['plugin']) ? $_GET['plugin'] : '';
$plugin = $container->get('Request')->getStr('plugin');
if (!preg_match('%^AM?P_(\w*?)\.php$%iD', $plugin))
message($lang_common['Bad request'], false, '404 Not Found');