mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-28 18:16:05 +00:00
Errors in timezone protocol should be in timezone xmlns
This commit is contained in:
parent
850baa0dbf
commit
46f0bd289a
@ -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 "'.$action.'" is not understood.' );
|
||||
$request->PreconditionFailed(400, "supported-action", 'The action "'.$action.'" is not understood.', 'urn:ietf:params:xml:ns:timezone-service' );
|
||||
}
|
||||
|
||||
$request->DoResponse( 500, translate("The application failed to understand that request.") );
|
||||
|
||||
@ -14,7 +14,7 @@ require_once('RRule-v2.php');
|
||||
|
||||
if ( empty($format) ) $format = 'text/calendar';
|
||||
if ( $format != 'text/calendar' ) {
|
||||
$request->PreconditionFailed(403, 'supported-format', 'This server currently only supports text/calendar format.');
|
||||
$request->PreconditionFailed(403, 'supported-format', 'This server currently only supports text/calendar format.', 'urn:ietf:params:xml:ns:timezone-service' );
|
||||
}
|
||||
|
||||
if ( empty($start) ) $start = sprintf( '%04d-01-01', date('Y'));
|
||||
|
||||
@ -13,7 +13,7 @@ require_once('vCalendar.php');
|
||||
|
||||
if ( empty($format) ) $format = 'text/calendar';
|
||||
if ( $format != 'text/calendar' ) {
|
||||
$request->PreconditionFailed(403, 'supported-format', 'This server currently only supports text/calendar format.');
|
||||
$request->PreconditionFailed(403, 'supported-format', 'This server currently only supports text/calendar format.', 'urn:ietf:params:xml:ns:timezone-service');
|
||||
}
|
||||
|
||||
$sql = 'SELECT our_tzno, tzid, active, olson_name, vtimezone, etag, ';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user