changeset 136:76eefceb2b90

Fix additional checks for HTTPS urls.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 04 Jun 2013 13:23:52 +0300
parents 50bf17f1ba39
children 0701ea4a76d4
files urllog.tcl
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/urllog.tcl	Tue Jun 04 13:23:14 2013 +0300
+++ b/urllog.tcl	Tue Jun 04 13:23:52 2013 +0300
@@ -468,7 +468,9 @@
   }
 
   ### Do we perform additional optional checks?
-  if {$urllog_check == 0 || ($http_tls_support == 0 && $u_proto == "https") || $u_proto != "http"} {
+  if {$urllog_check != 0 && (($http_tls_support != 0 && $u_proto == "https") || $u_proto == "http")} {
+    # Ok
+  } else {
     # No optional checks, just add the URL, if it does not exist already
     urllog_addurl $urlStr $urlNick $urlHost $urlChan ""
     return 1