allow - in theme names
This commit is contained in:
parent
75f7ebd49b
commit
a98ed49ee5
2
mod.php
2
mod.php
@ -352,7 +352,7 @@
|
|||||||
'mod'=>true
|
'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(!hasPermission($config['mod']['themes'])) error($config['error']['noaccess']);
|
||||||
|
|
||||||
if(!is_dir($config['dir']['themes']))
|
if(!is_dir($config['dir']['themes']))
|
||||||
|
Loading…
Reference in New Issue
Block a user