mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-10-01 15:05:53 +00:00
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
|
instance = "https://" + instance_entry.text
|
||||||
.replace ("/", "")
|
.replace ("/", "")
|
||||||
.replace (":", "")
|
.replace (":", "")
|
||||||
.replace ("http", "")
|
.replace ("https", "")
|
||||||
.replace ("https", "");
|
.replace ("http", "");
|
||||||
code = code_entry.text;
|
code = code_entry.text;
|
||||||
|
|
||||||
if (this.client_id == null || this.client_secret == null) {
|
if (this.client_id == null || this.client_secret == null) {
|
||||||
|
|
Loading…
Reference in a new issue