allow - in theme names

This commit is contained in:
Savetheinternet 2011-12-15 02:13:49 +11:00
parent 75f7ebd49b
commit a98ed49ee5

View File

@ -352,7 +352,7 @@
'mod'=>true
)
);
} elseif(preg_match('/^\/themes(\/(\w+))?$/', $query, $match)) {
} elseif(preg_match('/^\/themes(\/([\w\-]+))?$/', $query, $match)) {
if(!hasPermission($config['mod']['themes'])) error($config['error']['noaccess']);
if(!is_dir($config['dir']['themes']))