Bug#942202: sitesummary-client: sitesummary-upload missing https support

Petter Reinholdtsen <[email protected]>
Newsgroups gmane.linux.skolelinux.devel
Message-ID <sa6bkav9raj.fsf__9190.03050528175$1702407821$gmane$org@hjemme.reinholdtsen.name>
Control: tags -1 + patch

I believe the following patch will solve the issue.  I tested it
locally.

diff --git a/sitesummary-upload b/sitesummary-upload
index 28c19d6..846cac9 100755
--- a/sitesummary-upload
+++ b/sitesummary-upload
@@ -23,7 +23,7 @@ EOF
 my ($submiturl)  = $opts{'u'} || "http://localhost/cgi-bin/sitesummary-collector.cgi";
 my ($file)  = $opts{'f'} || "-";
 
-my ($host) = $submiturl =~ m%http://([^/]+)%;
+my ($host) = $submiturl =~ m%https?://([^/]+)%;
 
 print "Unable to parse url\n" if ($opts{'d'} && ! $host);
 
-- 
Happy hacking
Petter Reinholdtsen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.