diff options
author | Ville Skytt? <ville.skytta@iki.fi> | 2010-11-06 10:18:58 +0200 |
---|---|---|
committer | Ville Skytt? <ville.skytta@iki.fi> | 2010-11-06 10:18:58 +0200 |
commit | d44bde67048adad4fc125378a3eb502aca48cc2a (patch) | |
tree | 94b4b9e12714058b9ec9bf0307bed238c417cd88 /httpd/cgi-bin/check | |
parent | b5c27c357800d3881beec3d09a044d2445aa1354 (diff) | |
download | markup-validator-d44bde67048adad4fc125378a3eb502aca48cc2a.zip markup-validator-d44bde67048adad4fc125378a3eb502aca48cc2a.tar.gz markup-validator-d44bde67048adad4fc125378a3eb502aca48cc2a.tar.bz2 |
Point to HTTPS badge and referer docs for uploads, direct input, and https doc URIs.
URI >= 1.53 is now required.
Diffstat (limited to 'httpd/cgi-bin/check')
-rwxr-xr-x | httpd/cgi-bin/check | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index 8cb4d06..8725ace 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -59,7 +59,7 @@ use HTTP::Request qw(); 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 @@ sub prep_template ($$) $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}); |