avoid notice in error log from user_webfinger app
This commit is contained in:
parent
fd72f2bd29
commit
6c6b570ff1
|
@ -10,7 +10,7 @@ echo "<";
|
||||||
?xml version="1.0" encoding="UTF-8"?>
|
?xml version="1.0" encoding="UTF-8"?>
|
||||||
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xmlns:hm="http://host-meta.net/xrd/1.0">
|
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0" xmlns:hm="http://host-meta.net/xrd/1.0">
|
||||||
<hm:Host xmlns="http://host-meta.net/xrd/1.0"><?php echo $_SERVER['SERVER_NAME'] ?></hm:Host>
|
<hm:Host xmlns="http://host-meta.net/xrd/1.0"><?php echo $_SERVER['SERVER_NAME'] ?></hm:Host>
|
||||||
<Link rel="lrdd" template="http<?php echo ($_SERVER['HTTPS']?'s':''); ?>://<?php echo $_SERVER['SERVER_NAME'] ?>/.well-known/webfinger.php?q={uri}">
|
<Link rel="lrdd" template="http<?php echo (isset($_SERVER['HTTPS'])?'s':''); ?>://<?php echo $_SERVER['SERVER_NAME'] ?>/.well-known/webfinger.php?q={uri}">
|
||||||
</Link>
|
</Link>
|
||||||
</XRD>
|
</XRD>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ if($_GET['q']) {
|
||||||
if(substr($userName, 0, 5) == 'acct:') {
|
if(substr($userName, 0, 5) == 'acct:') {
|
||||||
$userName = substr($userName, 5);
|
$userName = substr($userName, 5);
|
||||||
}
|
}
|
||||||
if($_SERVER['HTTPS']) {
|
if(isset($_SERVER['HTTPS'])) {
|
||||||
$baseAddress = 'https://'.$_SERVER['SERVER_NAME'].'/apps/remoteStorage/';
|
$baseAddress = 'https://'.$_SERVER['SERVER_NAME'].'/apps/remoteStorage/';
|
||||||
} else {
|
} else {
|
||||||
$baseAddress = 'http://'.$_SERVER['SERVER_NAME'].'/apps/remoteStorage/';
|
$baseAddress = 'http://'.$_SERVER['SERVER_NAME'].'/apps/remoteStorage/';
|
||||||
|
|
Loading…
Reference in New Issue