From c66972f2cb89e65a8bbf8e39d42e8e479f7eb8dc Mon Sep 17 00:00:00 2001 From: Adrian Lang Date: Wed, 4 Nov 2009 11:01:15 +0100 Subject: Emit less E_NOTICEs and E_STRICTs Changes of behaviour are: * Allow the user name, title & description \e2\80\9c0\e2\80\9d * Default to Port 443 if using HTTPS * Set $INFO['isadmin'] and $INFO['ismanager'] to \e2\80\9cfalse\e2\80\9d even if no user is logged in * Do not pass empty fragment field in the event data for event ACTION_SHOW_REDIRECT * Handle chunked encoding in HTTPClient darcs-hash:20091104100115-e4919-5cf6397d4a457e3f98a8ca49fbdab03f2147721d.gz --- lib/exe/css.php | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'lib/exe/css.php') diff --git a/lib/exe/css.php b/lib/exe/css.php index 73502f055..cb689d015 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -32,15 +32,10 @@ if(!defined('SIMPLE_TEST')){ function css_out(){ global $conf; global $lang; - switch ($_REQUEST['s']) { - case 'all': - case 'print': - case 'feed': - $style = $_REQUEST['s']; - break; - default: - $style = ''; - break; + $style = ''; + if (isset($_REQUEST['s']) && + in_array($_REQUEST['s'], array('all', 'print', 'feed'))) { + $style = $_REQUEST['s']; } $tpl = trim(preg_replace('/[^\w-]+/','',$_REQUEST['t'])); @@ -152,7 +147,7 @@ function css_out(){ function css_cacheok($cache,$files,$tplinc){ global $config_cascade; - if($_REQUEST['purge']) return false; //support purge request + if(isset($_REQUEST['purge'])) return false; //support purge request $ctime = @filemtime($cache); if(!$ctime) return false; //There is no cache -- cgit v1.2.3