From 42869ffe0a630213a7753c8907120f10dfec7d31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87a=C4=9Fatay=20Yi=C4=9Fit=20=C5=9Eahin?= Date: Tue, 23 Oct 2018 13:25:21 +0300 Subject: [PATCH] Fix error while parsing URLs (#82) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #74. “http” being replaced before “https” left an extra “s” that did not get cleaned when an URL starting with “https” was entered. --- src/Dialogs/NewAccountDialog.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dialogs/NewAccountDialog.vala b/src/Dialogs/NewAccountDialog.vala index 6640b5f..e180a4b 100644 --- a/src/Dialogs/NewAccountDialog.vala +++ b/src/Dialogs/NewAccountDialog.vala @@ -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) {