From 5edd13c6bb89c7434d8437f8cc74c038371fdbf8 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 21 Oct 2022 11:20:23 +0200 Subject: fix various issues --- Zotlabs/Module/Well_known.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'Zotlabs/Module/Well_known.php') diff --git a/Zotlabs/Module/Well_known.php b/Zotlabs/Module/Well_known.php index af59b76e0..9cc31a7d3 100644 --- a/Zotlabs/Module/Well_known.php +++ b/Zotlabs/Module/Well_known.php @@ -34,7 +34,6 @@ class Well_known extends \Zotlabs\Web\Controller { $module = new \Zotlabs\Module\Wfinger(); $module->init(); break; - case 'host-meta': \App::$argc -= 1; array_shift(\App::$argv); @@ -42,7 +41,6 @@ class Well_known extends \Zotlabs\Web\Controller { $module = new \Zotlabs\Module\Hostxrd(); $module->init(); break; - case 'oauth-authorization-server': case 'openid-configuration': \App::$argc -= 1; @@ -51,18 +49,17 @@ class Well_known extends \Zotlabs\Web\Controller { $module = new \Zotlabs\Module\Oauthinfo(); $module->init(); break; - case 'dnt-policy.txt': echo file_get_contents('doc/dnt-policy.txt'); killme(); - + break; case 'caldav': case 'carddav': - if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') { - http_status('301', 'moved permanently'); - goaway(z_root() . '/cdav'); - }; - + if ($_SERVER['REQUEST_METHOD'] == 'PROPFIND') { + http_status('301', 'moved permanently'); + goaway(z_root() . '/cdav'); + }; + break; default: if(file_exists(\App::$cmd)) { echo file_get_contents(\App::$cmd); @@ -71,10 +68,8 @@ class Well_known extends \Zotlabs\Web\Controller { elseif(file_exists(\App::$cmd . '.php')) require_once(\App::$cmd . '.php'); break; - } } - http_status_exit(404); } } -- cgit v1.2.3