Skip to content

Commit

Permalink
bugfix for Auto rule creation of domains with subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
zumoshi committed Jul 14, 2016
1 parent 1adbedb commit b021581
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions BrowserSelect/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ private void Form1_Load(object sender, EventArgs e)
// put the domain name in Always open X in... checkbox
rule_url = new Uri(Program.url).Host;
var url_parts = rule_url.Split(new[] { '.' });
if (url_parts.Length > 2 && url_parts[url_parts.Length - 2].Length > 3)
rule_url = url_parts[url_parts.Length - 2] + url_parts[url_parts.Length - 1];
if (url_parts.Length > 2 && (url_parts[url_parts.Length - 2].Length <= 2 || !((new[] {"org","net","sch","gov"}).Contains(url_parts[url_parts.Length - 2]))))
rule_url = url_parts[url_parts.Length - 2] + "." + url_parts[url_parts.Length - 1];
rule_url = "*." + rule_url;

//didn't add this after all... (it was a checkbox for issue #9)
Expand Down
4 changes: 2 additions & 2 deletions BrowserSelect/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.3.0.0")]
[assembly: AssemblyFileVersion("1.3.0.0")]
[assembly: AssemblyVersion("1.3.1.0")]
[assembly: AssemblyFileVersion("1.3.1.0")]
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ it has been tested on windows 7, windows 8.1 and windows 10. requires **.net fra

# Download

you can download browser select here : [Browser select v1.3 (197KB)](https://github.com/zumoshi/BrowserSelect/releases/download/1.3.0/BrowserSelect.exe)
you can download browser select here : [Browser select v1.3.1 (197KB)](https://github.com/zumoshi/BrowserSelect/releases/download/1.3.1/BrowserSelect.exe)



# Changelog

v1.3.1
- bugfix for Auto rule creation of domains with subdomains

v1.3
- Added an "Always" button under browser icons that adds a rule for *.domain.tld
- Added a help button in the main form
Expand Down

0 comments on commit b021581

Please sign in to comment.