From a98ed49ee5d3ce709fa018bb4a6f7f8cfdde780a Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 15 Dec 2011 02:13:49 +1100 Subject: [PATCH] allow - in theme names --- mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.php b/mod.php index 8008c8f8..10d2949e 100644 --- a/mod.php +++ b/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']))