improve uninstalled-protection
This commit is contained in:
parent
f93be510a3
commit
5685965fdb
|
@ -2,7 +2,7 @@
|
|||
if($_SERVER['SCRIPT_NAME'] == '/.well-known/host-meta.php') {
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
} else {
|
||||
header('Please visit /apps/user_webfinger/activate.php first');
|
||||
header('Please-first: activate');
|
||||
}
|
||||
header("Content-Type: application/xml+xrd");
|
||||
echo "<";
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<?php
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
if($_SERVER['SCRIPT_NAME'] == '/.well-known/host-meta.php') {
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
} else {
|
||||
header('Please-first: activate');
|
||||
}
|
||||
header("Content-Type: application/xml+xrd");
|
||||
|
||||
if($_GET['q']) {
|
||||
|
|
Loading…
Reference in New Issue