mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
bug 3201: accept - in plugin directory name (identifier)
git-svn-id: http://piwigo.org/svn/trunk@30979 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
2921c25e00
commit
d0770df3f8
1 file changed
+1
-1
+1
-1
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user