From 1bd756b337af734db58344f583533d9686561a3a Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 31 May 2013 15:09:22 +0800 Subject: [PATCH] MDL-39967 cron: eliminate browser sniffing. This was an old hack to workaround a bug in IE6, no longer necessary --- admin/cron.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/admin/cron.php b/admin/cron.php index cce8ae32ef0..e4115458c76 100644 --- a/admin/cron.php +++ b/admin/cron.php @@ -72,24 +72,10 @@ if (!empty($CFG->cronremotepassword)) { } // send mime type and encoding -if (check_browser_version('MSIE')) { - //ugly IE hack to work around downloading instead of viewing - @header('Content-Type: text/html; charset=utf-8'); - echo ""; //<pre> is not good enough for us here -} else { - //send proper plaintext header - @header('Content-Type: text/plain; charset=utf-8'); -} +@header('Content-Type: text/plain; charset=utf-8'); // we do not want html markup in emulated CLI @ini_set('html_errors', 'off'); // execute the cron cron_run(); - -// finish the IE hack -if (check_browser_version('MSIE')) { - echo ""; -} - -