mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-26 02:44:29 +00:00
404 when there is no collection for the request URL.
This commit is contained in:
parent
a4d5cac40a
commit
8c8a5e2f6e
@ -33,6 +33,11 @@ header( "DAV: $dav");
|
||||
require_once("CalDAVRequest.php");
|
||||
$request = new CalDAVRequest();
|
||||
|
||||
if ( ! isset($request->collection) ) {
|
||||
dbg_error_log( "LOG WARNING", "Attempt to %s url '%s' but no collection exists there.", $request->method, $request->path );
|
||||
$request->DoResponse( 404, translate("There is no collection at that URL.") );
|
||||
}
|
||||
|
||||
switch ( $request->method ) {
|
||||
case 'OPTIONS': include_once("caldav-OPTIONS.php"); break;
|
||||
case 'REPORT': include_once("caldav-REPORT.php"); break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user