Fix error while parsing URLs (#82)

Fixes #74. “http” being replaced before “https” left an extra “s” that did not get cleaned when an URL starting with “https” was entered.
This commit is contained in:
Çağatay Yiğit Şahin 2018-10-23 13:25:21 +03:00 committed by Bleak Grey
parent 77b34c2693
commit 42869ffe0a
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ public class Tootle.NewAccountDialog : Gtk.Dialog {
instance = "https://" + instance_entry.text
.replace ("/", "")
.replace (":", "")
.replace ("http", "")
.replace ("https", "");
.replace ("https", "")
.replace ("http", "");
code = code_entry.text;
if (this.client_id == null || this.client_secret == null) {