From 88272dc27306755ecfa878f716a50e916dc6b8cf Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 27 Nov 2018 19:21:33 +0100 Subject: [PATCH] Remove http headers from update check output --- addon/lib/rmupdate.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index c865b69..6b89a71 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -1472,7 +1472,7 @@ proc ::rmupdate::get_addon_info {{fetch_available_version 0} {fetch_download_url set addons(${id}::cgi) $cgi set addons(${id}::cgi_interpreter) $cgi_interpreter set ::env(QUERY_STRING) "" - set available_version [exec $cgi_interpreter "$cgi"] + set available_version [lindex [split [string map {"\r" ""} [exec $cgi_interpreter "$cgi"]] "\n\n"] end] #set available_version [exec /usr/bin/wget "http://localhost${value}" --quiet --output-document=-] set addons(${id}::available_version) $available_version }