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
This commit is contained in:
plegall
2015-02-17 12:38:35 +00:00
parent 22b295ff8d
commit f57bea42b7

View File

@@ -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');
}