Update admin_loader.php

This commit is contained in:
Visman 2022-12-06 22:20:24 +07:00
parent 40f80ba23d
commit 0eee3696f3

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 = is_string($_GET['plugin'] ?? null) ? $_GET['plugin'] : '';
if (!preg_match('%^AM?P_(\w*?)\.php$%iD', $plugin))
message($lang_common['Bad request'], false, '404 Not Found');