diff --git a/public/lucidAuth.login.php b/public/lucidAuth.login.php index 73f36fb..0024bdf 100644 --- a/public/lucidAuth.login.php +++ b/public/lucidAuth.login.php @@ -16,7 +16,7 @@ echo '{"Result":"Fail","Reason":"Original request URI lost in transition"}' . PHP_EOL; exit; } - $originalUri = $proxyHeaders['XForwardedProto'] . '://' . $proxyHeaders['XForwardedHost'] . $proxyHeaders['XForwardedUri']; + $originalUri = !empty($proxyHeaders) ? $proxyHeaders['XForwardedProto'] . '://' . $proxyHeaders['XForwardedHost'] . $proxyHeaders['XForwardedUri'] : '#'; // Since this request is only ever called through an AJAX-request; return JSON object echo '{"Result":"Success","Location":"' . $originalUri . '"}' . PHP_EOL;