Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Aug 2014 15:44:26 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r45478 - head/en_US.ISO8859-1/htdocs/cgi
Message-ID:  <201408191544.s7JFiQp9007580@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wosch
Date: Tue Aug 19 15:44:26 2014
New Revision: 45478
URL: http://svnweb.freebsd.org/changeset/doc/45478

Log:
  protocol independent url

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/cgi-lib.pl

Modified: head/en_US.ISO8859-1/htdocs/cgi/cgi-lib.pl
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/cgi-lib.pl	Tue Aug 19 15:38:28 2014	(r45477)
+++ head/en_US.ISO8859-1/htdocs/cgi/cgi-lib.pl	Tue Aug 19 15:44:26 2014	(r45478)
@@ -77,7 +77,7 @@ sub MethGet {
 # MyURL
 # Returns a URL to the script
 sub MyURL  {
-  return  'http://' . $ENV{'SERVER_NAME'} .  $ENV{'SCRIPT_NAME'};
+  return  '//' . $ENV{'SERVER_NAME'} .  $ENV{'SCRIPT_NAME'};
 }
 # CgiError
 # Prints out an error message which containes appropriate headers,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408191544.s7JFiQp9007580>