aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/plugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/plugin.php b/admin/plugin.php
index 82939b35a..dd6d989e9 100644
--- a/admin/plugin.php
+++ b/admin/plugin.php
@@ -46,7 +46,7 @@ if (count($sections)<2)
$plugin_id = $sections[0];
-if (!preg_match('/^\w+$/', $plugin_id))
+if (!preg_match('/^[\w-]+$/', $plugin_id))
{
die('Invalid plugin identifier');
}