This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3115 - Referer Truncates Query Part of URI
Summary: Referer Truncates Query Part of URI
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 1.0 (show other bugs)
Version: CSS Validator
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-12 17:10 UTC by D Sledge
Modified: 2010-02-11 22:35 UTC (History)
1 user (show)

See Also:


Attachments

Description D Sledge 2006-04-12 17:10:58 UTC
Including a link to <http://jigsaw.w3.org/css-validator/check/referer> in a web
page will whose URI has more than one parameter in its query causes the validator to truncate everything after the first query parameter (e.g. the URI <http://blah.org/?blah=blah&yackety=schmackety> becomes <http://blah.org/?blah=blah>).  Consequently it validates a page that might or might not have been the intended page to be validated.

The validator works fine if the URI to be validated is explicitly referenced; <http://jigsaw.w3.org/css-validator/validator?uri=http://blah.org/?blah=blah&yackety=schmackety>.

Note that the markup validator can handle documents that have multiple parameters in the query part of their URI that are submitted via a refered URI using the link
<http://validator.w3.org/check/referer>.
Comment 1 Olivier Thereaux 2007-09-27 02:50:04 UTC
fixed by move to velocity
Comment 2 Karel Van der Gucht 2010-02-11 11:59:37 UTC
This is part of my HTML.

<table summary="" cellspacing="0" cellpadding="0" class="emptyBox">
<tr>
<TD align="center">
<a href="http://validator.w3.org/check?uri=referer">
<img id="valid-html401" src="./img/valid-html401.png" onmouseover="vdgFuss(this, true);" onmouseout="vdgFuss(this, false);" alt="Valid HTML 4.01  Transitional" title="Valid HTML 4.01  Transitional" height="24">
</a></TD>
<td align="center">
<a href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.pfarramt-essenbach.de/index.php?menu=Geschehen&amp;submenu=ElternKindGruppenE">
<img id="vcss" height="24" src="./img/vcss.png" alt="Valid CSS" title="Valid CSS" onmouseover="vdgFuss(this, true);" onmouseout="vdgFuss(this, false);">
</a></td>
</tr></table>

The URI will be truncated at the & (="&amp;") sign (as described in 3115).
If you call the CSS-Validator-Service like this, you willget an answer that all is ok but for the URI "until" the & and excluding the rest after "&".

The answer of the CSS-validator is:
Ergebnisse des CSS-Validators http://www.pfarramt-essenbach.de/index.php?menu=Geschehen (CSS level 2.1)
Gratuliere! Keine Fehler gefunden.

The part "submenu=ElternKindGruppenE" is MISSING.

kind regards
Karel Van der Gucht
Comment 3 Ville Skyttä 2010-02-11 22:35:45 UTC
(In reply to comment #2)
> This is part of my HTML.
[...]
> <a
> href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.pfarramt-essenbach.de/index.php?menu=Geschehen&amp;submenu=ElternKindGruppenE">

The "uri" argument needs to be URI escaped, just encoding HTML entities is not what you want there. Try this one instead:

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.pfarramt-essenbach.de%2Findex.php%3Fmenu%3DGeschehen%26submenu%3DElternKindGruppenE