Fixed non-proxied loginrequest logic
This commit is contained in:
parent
b04b2fb480
commit
203536cfd5
@ -16,7 +16,7 @@
|
|||||||
echo '{"Result":"Fail","Reason":"Original request URI lost in transition"}' . PHP_EOL;
|
echo '{"Result":"Fail","Reason":"Original request URI lost in transition"}' . PHP_EOL;
|
||||||
exit;
|
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
|
// Since this request is only ever called through an AJAX-request; return JSON object
|
||||||
echo '{"Result":"Success","Location":"' . $originalUri . '"}' . PHP_EOL;
|
echo '{"Result":"Success","Location":"' . $originalUri . '"}' . PHP_EOL;
|
||||||
|
Loading…
Reference in New Issue
Block a user