From af2a6588270f1407f91506e223d3b89d68fa2053 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Tue, 21 Nov 2006 20:20:50 +1300 Subject: [PATCH] Ensure that we still show something useful when there is no User-agent header. --- htdocs/caldav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/caldav.php b/htdocs/caldav.php index 5a7ba7d3..aa8e4d34 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -9,7 +9,7 @@ * @license http://gnu.org/copyleft/gpl.html GNU GPL v2 */ require_once("always.php"); -dbg_error_log( "caldav", " User agent: %s", $_SERVER['HTTP_USER_AGENT'] ); +dbg_error_log( "caldav", " User agent: %s", ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Unfortunately Mulberry and Chandler don't send a 'User-agent' header with their requests :-(")) ); require_once("BasicAuthSession.php"); $raw_headers = apache_request_headers();