From f01e6f5eb5d2be52542d93ae22fc54e59479073b Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 5 Oct 2011 08:41:27 +0200 Subject: [PATCH] If we didn't actually GET an action, don't have an ugly PHP error. --- htdocs/tz.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/tz.php b/htdocs/tz.php index a744e644..b985b20f 100644 --- a/htdocs/tz.php +++ b/htdocs/tz.php @@ -26,7 +26,7 @@ $request = new CalDAVRequest(); $code_file = sprintf( 'tz/%s.php', $action ); if ( ! @include_once( $code_file ) ) { - $request->PreconditionFailed(400, "supported-action", 'The action "'.$_GET['action'].'" is not understood.' ); + $request->PreconditionFailed(400, "supported-action", 'The action "'.$action.'" is not understood.' ); } $request->DoResponse( 500, translate("The application failed to understand that request.") );