-
-
Save gdyrrahitis/55144635f89de59bfb2028f031686318 to your computer and use it in GitHub Desktop.
IsUrlValid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static bool IsUrlValid(string returnUrl) | |
{ | |
return !string.IsNullOrWhiteSpace(returnUrl) | |
&& Uri.IsWellFormedUriString(returnUrl, UriKind.Relative); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment