From d0770df3f84bec4908159b93ed1dfda064fe44ae Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 17 Feb 2015 12:38:08 +0000 Subject: bug 3201: accept - in plugin directory name (identifier) git-svn-id: http://piwigo.org/svn/trunk@30979 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') 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