aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-02-17 12:38:08 +0000
committerplegall <plg@piwigo.org>2015-02-17 12:38:08 +0000
commitd0770df3f84bec4908159b93ed1dfda064fe44ae (patch)
tree6208f7cb00a2fe803e8674bd87735eabcaa69790
parent2921c25e0024617d05186e9baf3d4927828991f7 (diff)
bug 3201: accept - in plugin directory name (identifier)
git-svn-id: http://piwigo.org/svn/trunk@30979 68402e56-0260-453c-a942-63ccdbb3a9ee
-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');
}