recognize schemes other than http and ftp in wxLaunchDefaultBrowser()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2e7789a933
commit
02b94f4e73
@ -1001,8 +1001,7 @@ static bool DoLaunchDefaultBrowserHelper(const wxString& urlOrig, int flags)
|
||||
// this check is useful to avoid that wxURI recognizes as scheme parts of
|
||||
// the filename, in case urlOrig is a local filename
|
||||
// (e.g. "C:\\test.txt" when parsed by wxURI reports a scheme == "C")
|
||||
bool hasValidScheme = uri.HasScheme() &&
|
||||
(uri.GetScheme() == "http" || uri.GetScheme() == "file");
|
||||
bool hasValidScheme = uri.HasScheme() && uri.GetScheme().length() > 1;
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user