git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59237
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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__)