Skip to content

Commit 7b8a938

Browse files
committed
handle null/whitespace URLs
1 parent 3e073ec commit 7b8a938

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

FlashpointSecurePlayer/Shared.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,10 @@ public string this[string shortPath] {
19871987
private const string URI_SCHEME_FTP = "ftp";
19881988

19891989
public static string GetValidatedURL(string url) {
1990+
if (String.IsNullOrWhiteSpace(url)) {
1991+
return String.Empty;
1992+
}
1993+
19901994
url = url.Trim();
19911995

19921996
// first try a guessed scheme

FlashpointSecurePlayer/WebBrowserMode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public void BrowserGo(string url) {
450450
return;
451451
}
452452

453-
if (String.IsNullOrEmpty(url)) {
453+
if (String.IsNullOrWhiteSpace(url)) {
454454
AddressInvalid();
455455
return;
456456
}

0 commit comments

Comments
 (0)