summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Skytt? <ville.skytta@iki.fi>2010-11-04 21:08:28 +0200
committerVille Skytt? <ville.skytta@iki.fi>2010-11-04 21:08:28 +0200
commitf33375a02c2e8fe476fc7f0cc0fcf94f36514045 (patch)
tree281e7ea668201806187ba2ae1798506f47cbc831
parentcb0c056e7db44b7e38e2dd456f2b6daf72561164 (diff)
downloadmarkup-validator-f33375a02c2e8fe476fc7f0cc0fcf94f36514045.zip
markup-validator-f33375a02c2e8fe476fc7f0cc0fcf94f36514045.tar.gz
markup-validator-f33375a02c2e8fe476fc7f0cc0fcf94f36514045.tar.bz2
Get rid of file_uri_param, URI escape it in templates where needed.
-rwxr-xr-xhttpd/cgi-bin/check1
-rw-r--r--share/templates/en_US/valid.tmpl2
2 files changed, 1 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 42f4649..f458b01 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -1428,7 +1428,6 @@ sub prep_template ($$)
#
# The URI...
$T->param(file_uri => $File->{URI});
- $T->param(file_uri_param => uri_escape($File->{URI}));
#
# Set URL for page title.
diff --git a/share/templates/en_US/valid.tmpl b/share/templates/en_US/valid.tmpl
index dd2a6a6..3117ef8 100644
--- a/share/templates/en_US/valid.tmpl
+++ b/share/templates/en_US/valid.tmpl
@@ -120,7 +120,7 @@
check it
<TMPL_ELSE>
<a title="Validate CSS at the W3C CSS Validator"
- href="http://jigsaw.w3.org/css-validator/validator?uri=<TMPL_VAR NAME="file_uri_param">">check
+ href="http://jigsaw.w3.org/css-validator/validator?uri=<TMPL_VAR NAME="file_uri" ESCAPE="URL">">check
it</a>
</TMPL_IF>
</TMPL_IF>