mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-31 18:46:02 +00:00
Move well-known.php into the include directory.
Also start to add some basic support for autodiscover.xml handling.
This commit is contained in:
parent
7f3024a4b6
commit
44ba4443f6
@ -19,11 +19,16 @@ if ( isset($_SERVER['PATH_INFO']) && preg_match( '{^(/favicon.ico|davical.css|(i
|
||||
}
|
||||
exit(0);
|
||||
}
|
||||
elseif ( isset($_SERVER['PATH_INFO']) && preg_match( '{^/\.well-known/(.+)$}', $_SERVER['PATH_INFO'], $matches ) ) {
|
||||
require ('well-known.php');
|
||||
require_once('./always.php');
|
||||
|
||||
if ( isset($_SERVER['PATH_INFO']) && preg_match( '{^/\.well-known/(.+)$}', $_SERVER['PATH_INFO'], $matches ) ) {
|
||||
require ('well-known.php');
|
||||
exit(0);
|
||||
}
|
||||
elseif ( isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == '/autodiscover/autodiscover.xml' ) {
|
||||
require ('autodiscover-handler.php');
|
||||
exit(0);
|
||||
}
|
||||
require_once('./always.php');
|
||||
|
||||
function logRequestHeaders() {
|
||||
global $c;
|
||||
|
||||
2
inc/autodiscover-handler.php
Normal file
2
inc/autodiscover-handler.php
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
echo "autodiscover is not handled yet."
|
||||
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once('./always.php');
|
||||
|
||||
dbg_error_log( 'well-known', 'iSchedule requested' );
|
||||
|
||||
require_once('HTTPAuthSession.php');
|
||||
Loading…
x
Reference in New Issue
Block a user