aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-08-30 00:51:46 +0200
committerMax Kostikov <max@kostikov.co>2019-08-30 00:51:46 +0200
commit51954c7f3de4940bb9bdc545f8a2a26e6ea7b101 (patch)
tree5fb18d87ed1b6892f1a1aae7c91fa03c938bed68 /Zotlabs
parent60919488f17ded7bcd1dd48429baaca530475161 (diff)
downloadvolse-hubzilla-51954c7f3de4940bb9bdc545f8a2a26e6ea7b101.tar.gz
volse-hubzilla-51954c7f3de4940bb9bdc545f8a2a26e6ea7b101.tar.bz2
volse-hubzilla-51954c7f3de4940bb9bdc545f8a2a26e6ea7b101.zip
Add CalDAV / CardDAV autodiscovery
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Well_known.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zotlabs/Module/Well_known.php b/Zotlabs/Module/Well_known.php
index 09e743788..d322c016c 100644
--- a/Zotlabs/Module/Well_known.php
+++ b/Zotlabs/Module/Well_known.php
@@ -63,6 +63,18 @@ class Well_known extends \Zotlabs\Web\Controller {
case 'dnt-policy.txt':
echo file_get_contents('doc/dnt-policy.txt');
killme();
+
+ case 'caldav':
+ if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') {
+ http_status('301', 'moved permanently');
+ goaway(z_root() . '/cdav');
+ };
+
+ case 'caldav':
+ if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') {
+ http_status('301', 'moved permanently');
+ goaway(z_root() . '/cdav');
+ };
default:
if(file_exists(\App::$cmd)) {