1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-29 09:44:28 +01:00

allow - in theme names

This commit is contained in:
Savetheinternet 2011-12-15 02:13:49 +11:00
parent 684fb68bf9
commit e962869298

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']))