]> git.saurik.com Git - wxWidgets.git/commitdiff
recognize schemes other than http and ftp in wxLaunchDefaultBrowser()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 1 Mar 2009 12:27:31 +0000 (12:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 1 Mar 2009 12:27:31 +0000 (12:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/utilscmn.cpp

index 02befc3f4381b7239c687fcadc762e401d20984b..c3a019d5270f1461f79e764536a8ea4d8c4e59f1 100644 (file)
@@ -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__)