From f57bea42b7a78e7fc367d82f2bb1d7a0cb825e1e Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 17 Feb 2015 12:38:35 +0000 Subject: merge r30979 from trunk to branch 2.7 bug 3201: accept - in plugin directory name (identifier) git-svn-id: http://piwigo.org/svn/branches/2.7@30980 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } -- cgit v1.2.3