From 0f69eb47e47d7b615b2b5d07eaab92eb9d07bb1f Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 23 Jul 2013 10:42:19 +0000 Subject: [PATCH] Prefixo SSL na URL pode ser maiúsculo ou minúsculo --- src/pw3270/hostdialog.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pw3270/hostdialog.c b/src/pw3270/hostdialog.c index 7c1994e..598e215 100644 --- a/src/pw3270/hostdialog.c +++ b/src/pw3270/hostdialog.c @@ -330,8 +330,10 @@ hostname = cfghost; + trace("hostname=[%s]",hostname); + #ifdef HAVE_LIBSSL - if(!strncmp(hostname,"L:",2)) + if(!g_ascii_strncasecmp(hostname,"L:",2)) { gtk_toggle_button_set_active(sslcheck,TRUE); hostname += 2; @@ -339,10 +341,12 @@ #else gtk_toggle_button_set_active(sslcheck,FALSE); gtk_widget_set_sensitive(GTK_WIDGET(sslcheck),FALSE); - if(!strncmp(hostname,"L:",2)) + if(!g_ascii_strncasecmp(hostname,"L:",2)) hostname += 2; #endif + trace("hostname=[%s]",hostname); + ptr = strchr(hostname,':'); if(ptr) { -- libgit2 0.21.2