Browse Source

Deleted GET from admin_loader

Visman 8 years ago
parent
commit
318be89a8a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      admin_loader.php

+ 1 - 1
admin_loader.php

@@ -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');