Commit 0f69eb47e47d7b615b2b5d07eaab92eb9d07bb1f

Authored by perry.werneck@gmail.com
1 parent 53de1ac6

Prefixo SSL na URL pode ser maiúsculo ou minúsculo

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
src/pw3270/hostdialog.c
... ... @@ -330,8 +330,10 @@
330 330  
331 331 hostname = cfghost;
332 332  
  333 + trace("hostname=[%s]",hostname);
  334 +
333 335 #ifdef HAVE_LIBSSL
334   - if(!strncmp(hostname,"L:",2))
  336 + if(!g_ascii_strncasecmp(hostname,"L:",2))
335 337 {
336 338 gtk_toggle_button_set_active(sslcheck,TRUE);
337 339 hostname += 2;
... ... @@ -339,10 +341,12 @@
339 341 #else
340 342 gtk_toggle_button_set_active(sslcheck,FALSE);
341 343 gtk_widget_set_sensitive(GTK_WIDGET(sslcheck),FALSE);
342   - if(!strncmp(hostname,"L:",2))
  344 + if(!g_ascii_strncasecmp(hostname,"L:",2))
343 345 hostname += 2;
344 346 #endif
345 347  
  348 + trace("hostname=[%s]",hostname);
  349 +
346 350 ptr = strchr(hostname,':');
347 351 if(ptr)
348 352 {
... ...