mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
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
|
||||
)
|
||||
);
|
||||
} 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']))
|
||||
|
Loading…
Reference in New Issue
Block a user