Point to HTTPS badge and referer docs for uploads, direct input, and https doc URIs.
authorVille Skyttä <ville.skytta@iki.fi>
Sat, 06 Nov 2010 10:18:58 +0200
changeset 3154 3705099f9260
parent 3153 a2884dc7aa27
child 3155 5a5ca8065e6f
Point to HTTPS badge and referer docs for uploads, direct input, and https doc URIs.

URI >= 1.53 is now required.
htdocs/docs/install.html
httpd/cgi-bin/check
misc/bundle/Makefile.PL
misc/bundle/lib/Bundle/W3C/Validator.pm
share/templates/en_US/valid.tmpl
--- a/htdocs/docs/install.html	Sat Nov 06 10:15:25 2010 +0200
+++ b/htdocs/docs/install.html	Sat Nov 06 10:18:58 2010 +0200
@@ -174,7 +174,7 @@
         <dd>
           Interface to the <a href="#install-prereq-sp">OpenSP parser</a>.
         </dd>
-        <dt><a href="http://search.cpan.org/dist/URI/">URI</a></dt>
+        <dt><a href="http://search.cpan.org/dist/URI/">URI</a> &gt;= 1.53</dt>
         <dd>
           Library to handle URIs and escaping special characters in them.
         </dd>
--- a/httpd/cgi-bin/check	Sat Nov 06 10:15:25 2010 +0200
+++ b/httpd/cgi-bin/check	Sat Nov 06 10:18:58 2010 +0200
@@ -59,7 +59,7 @@
 use HTTP::Headers::Auth qw();      # Needs to be imported after other HTTP::*.
 use JSON 2.00 qw();
 use SGML::Parser::OpenSP 0.991 qw();
-use URI qw();
+use URI 1.53 qw();                 # Need 1.53 for secure()
 use URI::Escape qw(uri_escape);
 use URI::file;
 use URI::Heuristic qw();
@@ -1430,6 +1430,12 @@
     $T->param(file_uri => $File->{URI});
 
     #
+    # HTTPS note?
+    $T->param(file_https_note => $File->{'Is Upload'} ||
+            $File->{'Direct Input'} ||
+            URI->new($File->{URI})->secure());
+
+    #
     # Set URL for page title.
     $T->param(page_title_url => $File->{URI});
 
--- a/misc/bundle/Makefile.PL	Sat Nov 06 10:15:25 2010 +0200
+++ b/misc/bundle/Makefile.PL	Sat Nov 06 10:18:58 2010 +0200
@@ -36,7 +36,7 @@
         "Net::IP"               => 0,
         "SGML::Parser::OpenSP"  => 0.991,
         "Socket"                => 0,
-        "URI"                   => 0,
+        "URI"                   => 1.53,
         "URI::Escape"           => 0,
         "URI::file"             => 0,
         "URI::Heuristic"        => 0,
--- a/misc/bundle/lib/Bundle/W3C/Validator.pm	Sat Nov 06 10:15:25 2010 +0200
+++ b/misc/bundle/lib/Bundle/W3C/Validator.pm	Sat Nov 06 10:18:58 2010 +0200
@@ -46,7 +46,7 @@
  Net::hostent
  SGML::Parser::OpenSP 0.991
  Socket
- URI
+ URI 1.53
  URI::Escape
  URI::file
  URI::Heuristic
--- a/share/templates/en_US/valid.tmpl	Sat Nov 06 10:15:25 2010 +0200
+++ b/share/templates/en_US/valid.tmpl	Sat Nov 06 10:18:58 2010 +0200
@@ -95,6 +95,11 @@
     If you like, you can download a copy of the icons
     to keep in your local web directory, and change the HTML fragment
     above to reference your local image rather than the one on this server.
+  <TMPL_IF NAME="file_https_note">
+    See also our help items related to documents transferred over secure
+    protocols for these <a href="docs/help.html#icon-https">icons</a> and
+    the <a href="docs/help.html#faq-referer">"uri=referer" feature</a>.
+  </TMPL_IF>
   </p>
 </TMPL_IF>
 <TMPL_UNLESS NAME="is_upload">