Browse Source

remove special case for /.well-known/host-meta and add module for /.well-known

tags/3.1
Fabrixxm 8 years ago
parent
commit
a77fdfa6aa
2 changed files with 15 additions and 10 deletions
  1. +1
    -10
      boot.php
  2. +14
    -0
      mod/_well_known.php

+ 1
- 10
boot.php View File

@@ -458,6 +458,7 @@ if(! class_exists('App')) {
$this->argc = count($this->argv);
if((array_key_exists('0',$this->argv)) && strlen($this->argv[0])) {
$this->module = str_replace(".", "_", $this->argv[0]);
$this->module = str_replace("-", "_", $this->module);
}
else {
$this->argc = 1;
@@ -465,16 +466,6 @@ if(! class_exists('App')) {
$this->module = 'home';
}

/**
* Special handling for the webfinger/lrdd host XRD file
*/

if($this->cmd === '.well-known/host-meta') {
$this->argc = 1;
$this->argv = array('hostxrd');
$this->module = 'hostxrd';
}

/**
* See if there is any page number information, and initialise
* pagination


+ 14
- 0
mod/_well_known.php View File

@@ -0,0 +1,14 @@
<?php
require_once("hostxrd.php");
function _well_known_init(&$a){
if ($a->argc > 1) {
switch($a->argv[1]) {
case "host-meta":
hostxrd_init($a);
break;
}
}
http_status_exit(404);
killme();
}

Loading…
Cancel
Save