allow - in theme names

This commit is contained in:
Savetheinternet 2011-12-15 02:18:32 +11:00
parent a98ed49ee5
commit 123928cdad

View File

@ -324,7 +324,7 @@
'mod'=>true
)
);
} elseif(preg_match('/^\/themes\/(\w+)\/rebuild$/', $query, $match)) {
} elseif(preg_match('/^\/themes\/([\w\-]+)\/rebuild$/', $query, $match)) {
if(!hasPermission($config['mod']['themes'])) error($config['error']['noaccess']);
rebuildTheme($match[1], 'all');