From: Vadim Zeitlin Date: Sun, 1 Mar 2009 12:27:31 +0000 (+0000) Subject: recognize schemes other than http and ftp in wxLaunchDefaultBrowser() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/02b94f4e73cd7423b27aafb388179a8c7e856df1 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 --- diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index 02befc3f43..c3a019d527 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -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__)