mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
fix boolean
This commit is contained in:
parent
7c0b26174f
commit
48a95457b6
@ -139,7 +139,7 @@ namespace BTCPayServer
|
||||
{
|
||||
bool isRelative = redirectUrl.Length > 0 && redirectUrl[0] == '/';
|
||||
if (!isRelative)
|
||||
isRelative = new Uri(redirectUrl, UriKind.RelativeOrAbsolute).IsAbsoluteUri;
|
||||
isRelative = !new Uri(redirectUrl, UriKind.RelativeOrAbsolute).IsAbsoluteUri;
|
||||
if (!isRelative)
|
||||
return redirectUrl;
|
||||
return request.GetAbsoluteRoot() + redirectUrl;
|
||||
|
Loading…
Reference in New Issue
Block a user