diff options
author | friendica <info@friendica.com> | 2014-05-06 22:25:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-06 22:25:36 -0700 |
commit | 92be2e108180176d4406aa83fc9cee03f0d117e9 (patch) | |
tree | e0be3297a1f2e64ab34d58cb1099be311437fd9b | |
parent | f1eafbf47dfd41ef1977736aad156fa6e7c5a964 (diff) | |
download | volse-hubzilla-92be2e108180176d4406aa83fc9cee03f0d117e9.tar.gz volse-hubzilla-92be2e108180176d4406aa83fc9cee03f0d117e9.tar.bz2 volse-hubzilla-92be2e108180176d4406aa83fc9cee03f0d117e9.zip |
make it easier to plug into .well_known, for instance to tell the EFF to fuck off and not block pages from the free web just because they use cookies.
-rw-r--r-- | mod/_well_known.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/_well_known.php b/mod/_well_known.php index 885ff9b50..d88bc2391 100644 --- a/mod/_well_known.php +++ b/mod/_well_known.php @@ -3,6 +3,10 @@ function _well_known_init(&$a){
if(argc() > 1) {
+
+ $arr = array('server' => $_SERVER, 'request' => $_REQUEST);
+ call_hooks('well_known', $arr);
+
switch(argv(1)) {
case 'zot-info':
$a->argc -= 1;
@@ -19,6 +23,7 @@ function _well_known_init(&$a){ require_once('mod/wfinger.php');
wfinger_init($a);
break;
+
case 'host-meta':
$a->argc -= 1;
array_shift($a->argv);
@@ -26,6 +31,7 @@ function _well_known_init(&$a){ require_once('mod/hostxrd.php');
hostxrd_init($a);
break;
+
default:
break;
|