Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Fix possible crash when opening the msn news page
Browse files Browse the repository at this point in the history
  • Loading branch information
sylveon committed Mar 11, 2018
1 parent 1c4c345 commit db9d298
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Edge2Browser/Program.cs
Expand Up @@ -86,8 +86,9 @@ static void Main(string[] CommandLine)
if (!new string[] {"http://", "https://"}.Any(ValidProtocol => LaunchURL.StartsWith(ValidProtocol, StringComparison.OrdinalIgnoreCase)))
LaunchURL = "http://" + LaunchURL; // If there isn't a valid URL prefix, add one to prevent launching an arbitrary exe. (Or someone calling the protocol like this: "microsoft-edge:google.com")

if (Uri.IsWellFormedUriString(LaunchURL, UriKind.Absolute))
LaunchInternetURL(LaunchURL);
Uri url;
if (Uri.TryCreate(LaunchURL, UriKind.Absolute, out url))
LaunchInternetURL(url.AbsoluteUri);
else
throw new UriFormatException(); // When this happens, we can get a memory dump by WER containing the CommandLine array for further analysis and bugfixing.
}
Expand Down
2 changes: 1 addition & 1 deletion Setup/InnoSetup.iss
Expand Up @@ -6,7 +6,7 @@ AppName=SearchWithMyBrowser
AppPublisher=Charles Milette
AppPublisherURL=https://charlesmilette.net/
AppSupportURL=https://github.com/charlesmilette/SearchWithMyBrowser/issues/new
AppVersion=1.1.1
AppVersion=1.1.2
ArchitecturesInstallIn64BitMode=x64 ia64
ChangesAssociations=yes
DefaultDirName={pf}\SearchWithMyBrowser
Expand Down
2 changes: 1 addition & 1 deletion Store/AppxManifest.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10">
<Identity Name="28017CharlesMilette.SearchWithMyBrowser" ProcessorArchitecture="x86" Publisher="CN=04797BBC-C7BB-462F-9B66-331C81E27C0E" Version="1.1.1.0" />
<Identity Name="28017CharlesMilette.SearchWithMyBrowser" ProcessorArchitecture="x86" Publisher="CN=04797BBC-C7BB-462F-9B66-331C81E27C0E" Version="1.1.2.0" />
<Properties>
<DisplayName>SearchWithMyBrowser</DisplayName>
<PublisherDisplayName>Charles Milette</PublisherDisplayName>
Expand Down

0 comments on commit db9d298

Please sign in to comment.