Skip to content

Commit

Permalink
bug 3201: accept - in plugin directory name (identifier)
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@30979 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Feb 17, 2015
1 parent 2921c25 commit d0770df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/plugin.php
Expand Up @@ -46,7 +46,7 @@

$plugin_id = $sections[0];

if (!preg_match('/^\w+$/', $plugin_id))
if (!preg_match('/^[\w-]+$/', $plugin_id))
{
die('Invalid plugin identifier');
}
Expand Down

0 comments on commit d0770df

Please sign in to comment.