fix: handle empty and invalid strings in the schemeOverride

This commit is contained in:
Ersei Saggi
2023-08-07 12:14:52 -04:00
parent 9b667b3175
commit f37e8dd3bb
+5
View File
@@ -1050,6 +1050,11 @@ public class SSOController : ControllerBase
requestPort = -1;
}
if (schemeOverride != "http" && schemeOverride != "https")
{
schemeOverride = null;
}
return new UriBuilder
{
Scheme = schemeOverride ?? Request.Scheme,