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 31543705099f9260
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
     1.1 --- a/htdocs/docs/install.html	Sat Nov 06 10:15:25 2010 +0200
     1.2 +++ b/htdocs/docs/install.html	Sat Nov 06 10:18:58 2010 +0200
     1.3 @@ -174,7 +174,7 @@
     1.4          <dd>
     1.5            Interface to the <a href="#install-prereq-sp">OpenSP parser</a>.
     1.6          </dd>
     1.7 -        <dt><a href="http://search.cpan.org/dist/URI/">URI</a></dt>
     1.8 +        <dt><a href="http://search.cpan.org/dist/URI/">URI</a> &gt;= 1.53</dt>
     1.9          <dd>
    1.10            Library to handle URIs and escaping special characters in them.
    1.11          </dd>
     2.1 --- a/httpd/cgi-bin/check	Sat Nov 06 10:15:25 2010 +0200
     2.2 +++ b/httpd/cgi-bin/check	Sat Nov 06 10:18:58 2010 +0200
     2.3 @@ -59,7 +59,7 @@
     2.4  use HTTP::Headers::Auth qw();      # Needs to be imported after other HTTP::*.
     2.5  use JSON 2.00 qw();
     2.6  use SGML::Parser::OpenSP 0.991 qw();
     2.7 -use URI qw();
     2.8 +use URI 1.53 qw();                 # Need 1.53 for secure()
     2.9  use URI::Escape qw(uri_escape);
    2.10  use URI::file;
    2.11  use URI::Heuristic qw();
    2.12 @@ -1430,6 +1430,12 @@
    2.13      $T->param(file_uri => $File->{URI});
    2.14  
    2.15      #
    2.16 +    # HTTPS note?
    2.17 +    $T->param(file_https_note => $File->{'Is Upload'} ||
    2.18 +            $File->{'Direct Input'} ||
    2.19 +            URI->new($File->{URI})->secure());
    2.20 +
    2.21 +    #
    2.22      # Set URL for page title.
    2.23      $T->param(page_title_url => $File->{URI});
    2.24  
     3.1 --- a/misc/bundle/Makefile.PL	Sat Nov 06 10:15:25 2010 +0200
     3.2 +++ b/misc/bundle/Makefile.PL	Sat Nov 06 10:18:58 2010 +0200
     3.3 @@ -36,7 +36,7 @@
     3.4          "Net::IP"               => 0,
     3.5          "SGML::Parser::OpenSP"  => 0.991,
     3.6          "Socket"                => 0,
     3.7 -        "URI"                   => 0,
     3.8 +        "URI"                   => 1.53,
     3.9          "URI::Escape"           => 0,
    3.10          "URI::file"             => 0,
    3.11          "URI::Heuristic"        => 0,
     4.1 --- a/misc/bundle/lib/Bundle/W3C/Validator.pm	Sat Nov 06 10:15:25 2010 +0200
     4.2 +++ b/misc/bundle/lib/Bundle/W3C/Validator.pm	Sat Nov 06 10:18:58 2010 +0200
     4.3 @@ -46,7 +46,7 @@
     4.4   Net::hostent
     4.5   SGML::Parser::OpenSP 0.991
     4.6   Socket
     4.7 - URI
     4.8 + URI 1.53
     4.9   URI::Escape
    4.10   URI::file
    4.11   URI::Heuristic
     5.1 --- a/share/templates/en_US/valid.tmpl	Sat Nov 06 10:15:25 2010 +0200
     5.2 +++ b/share/templates/en_US/valid.tmpl	Sat Nov 06 10:18:58 2010 +0200
     5.3 @@ -95,6 +95,11 @@
     5.4      If you like, you can download a copy of the icons
     5.5      to keep in your local web directory, and change the HTML fragment
     5.6      above to reference your local image rather than the one on this server.
     5.7 +  <TMPL_IF NAME="file_https_note">
     5.8 +    See also our help items related to documents transferred over secure
     5.9 +    protocols for these <a href="docs/help.html#icon-https">icons</a> and
    5.10 +    the <a href="docs/help.html#faq-referer">"uri=referer" feature</a>.
    5.11 +  </TMPL_IF>
    5.12    </p>
    5.13  </TMPL_IF>
    5.14  <TMPL_UNLESS NAME="is_upload">