fix boolean

This commit is contained in:
nicolas.dorier 2018-04-29 20:49:38 +09:00
parent 7c0b26174f
commit 48a95457b6

View File

@ -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;