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:
parent
77b34c2693
commit
42869ffe0a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue