diff options
author | ville <ville@localhost> | 2005-07-22 16:49:55 +0000 |
---|---|---|
committer | ville <ville@localhost> | 2005-07-22 16:49:55 +0000 |
commit | 683a7b2343db8a4a079994629907ed1ea70f261b (patch) | |
tree | d315eb12281ac2f41f731efab043c215fcdd4299 | |
parent | b437c0aaef0992262fdc89330fe1d13ec0c234dd (diff) | |
download | markup-validator-683a7b2343db8a4a079994629907ed1ea70f261b.zip markup-validator-683a7b2343db8a4a079994629907ed1ea70f261b.tar.gz markup-validator-683a7b2343db8a4a079994629907ed1ea70f261b.tar.bz2 |
Fix and simplify linking in "no referer found" results.
-rwxr-xr-x | httpd/cgi-bin/check | 7 | ||||
-rw-r--r-- | share/templates/en_US/fatal-error.tmpl | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check index b9947a8..b416d03 100755 --- a/httpd/cgi-bin/check +++ b/httpd/cgi-bin/check @@ -9,7 +9,7 @@ # This source code is available under the license at: # http://www.w3.org/Consortium/Legal/copyright-software # -# $Id: check,v 1.426 2005-07-22 16:29:47 ville Exp $ +# $Id: check,v 1.427 2005-07-22 16:49:55 ville Exp $ # # Disable buffering on STDOUT! @@ -204,7 +204,7 @@ Directory not readable (permission denied): @_r # # Strings - $VERSION = q$Revision: 1.426 $; + $VERSION = q$Revision: 1.427 $; $VERSION =~ s/Revision: ([\d\.]+) /$1/; # @@ -1835,9 +1835,8 @@ sub prepCGI { # the browser didn't send a Referer header, or the request was # for /check?uri=referer but no Referer header was found. $File->{'Error Flagged'} = TRUE; - + $File->{E}->param(fatal_referer_error => TRUE); - $File->{E}->param(fatal_referer_uri => $CFG->{'Home Page'}); } } diff --git a/share/templates/en_US/fatal-error.tmpl b/share/templates/en_US/fatal-error.tmpl index 7ad1e81..a1536fb 100644 --- a/share/templates/en_US/fatal-error.tmpl +++ b/share/templates/en_US/fatal-error.tmpl @@ -144,8 +144,8 @@ <p>This is <em>not</em> an error in the referring page!</p> <p> Please use the form interface on the - <a href="<TMPL_VAR NAME="fatal_referer_url">">Validator Home Page</a> (or the - <a href="<TMPL_VAR NAME="fatal_referer_url">/detailed.html">Extended Interface</a>) to check the + <a href="./">Validator Home Page</a> (or the + <a href="detailed.html">Extended Interface</a>) to check the page by URL. </p> </TMPL_IF> |