# HG changeset patch # User Matti Hamalainen # Date 1540535913 -10800 # Node ID 6ea3977f44609d7284586da32d81e992be501b23 # Parent 2faf2eb18f26b9ebe86b7b29e12ef72e67b7a019# Parent 6c999a7ac6d9b75a47edd835692ed6f168d47964 Merge. diff -r 6c999a7ac6d9 -r 6ea3977f4460 urllog.tcl --- a/urllog.tcl Sun Jul 01 18:57:00 2018 +0300 +++ b/urllog.tcl Fri Oct 26 09:38:33 2018 +0300 @@ -344,12 +344,6 @@ return 0 } - ### Is it a http or ftp url? - if {$urlProto != "http" && $urlProto != "https" && $urlProto != "ftp"} { - urllog_log "Broken URL from $urlNick: ($urlStr) UNSUPPORTED protocol class ($urlProto)." - return 0 - } - ### Check the Top Level Domain (TLD) validity if {$urllog_check_tld != 0 && $u_checktld != 0} { set u_sane [lindex [split $urlHostName "."] end] @@ -495,7 +489,12 @@ # Get the document title, if any set urlTitle "" - set tmpRes [regexp -nocase -- "(.\*\?)" $udata umatches urlTitle] + + if {[regexp -nocase -- "" $udata umatches urlTitle]} { + # ... + } elseif {[regexp -nocase -- "(.\*\?)" $udata umatches urlTitle]} { + # ... + } # If facebook, get meta info if {[regexp -nocase -- "(http|https):\/\/www.facebook.com" $urlStr]} { @@ -518,24 +517,6 @@ set urlTitle [string trim $utmp] } - # Rasiatube hack - if {$urllog_rasiatube_hack != 0 && [string match "*/rasiatube/view*" $urlStr]} { - set rasia 0 - if {[regexp -nocase -- "