diff options
author | Michiel de Jong <michiel@unhosted.org> | 2012-02-22 22:04:21 +0400 |
---|---|---|
committer | Michiel de Jong <michiel@unhosted.org> | 2012-02-22 22:04:21 +0400 |
commit | 351cc844031c048d011bc61d4bab3e259c53c205 (patch) | |
tree | eac62de9d2f453d4801e930bdd426e30b75a0c4c /user_webfinger | |
parent | e481f782ab5d695a3105cfc2b574cba20cca0cf9 (diff) |
avoid notice in error log from user_webfinger app
Diffstat (limited to 'user_webfinger')
-rw-r--r-- | user_webfinger/host-meta.php | 2 | ||||
-rw-r--r-- | user_webfinger/webfinger.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/user_webfinger/host-meta.php b/user_webfinger/host-meta.php index ceb15f22d..dbb4377e8 100644 --- a/user_webfinger/host-meta.php +++ b/user_webfinger/host-meta.php @@ -10,7 +10,7 @@ echo "<"; ?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"> <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> </XRD> diff --git a/user_webfinger/webfinger.php b/user_webfinger/webfinger.php index d695a833f..a95371820 100644 --- a/user_webfinger/webfinger.php +++ b/user_webfinger/webfinger.php @@ -22,7 +22,7 @@ if($_GET['q']) { if(substr($userName, 0, 5) == 'acct:') { $userName = substr($userName, 5); } -if($_SERVER['HTTPS']) { +if(isset($_SERVER['HTTPS'])) { $baseAddress = 'https://'.$_SERVER['SERVER_NAME'].'/apps/remoteStorage/'; } else { $baseAddress = 'http://'.$_SERVER['SERVER_NAME'].'/apps/remoteStorage/'; |