mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
allow - in theme names
This commit is contained in:
parent
684fb68bf9
commit
e962869298
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