From f7589b08ca2beebd66b4faa07aa9e3dfbc0d726d Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 1 Apr 2008 21:40:32 +0200 Subject: Update character class for template names to include dash darcs-hash:20080401194032-f07c6-0ba243a05e6767a381dbacd67fbdc9d2437deeb5.gz --- lib/exe/css.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/exe/css.php') diff --git a/lib/exe/css.php b/lib/exe/css.php index 11ae2e828..0aa26de13 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -41,7 +41,7 @@ function css_out(){ break; } - $tpl = trim(preg_replace('/[^\w]+/','',$_REQUEST['t'])); + $tpl = trim(preg_replace('/[^\w-]+/','',$_REQUEST['t'])); if($tpl){ $tplinc = DOKU_INC.'lib/tpl/'.$tpl.'/'; $tpldir = DOKU_BASE.'lib/tpl/'.$tpl.'/'; -- cgit v1.2.3