@anonymous-piwik-user opened this Issue on August 30th 2011

The image tracking code currently generated by Piwik (1.5.1) causes HTML Validation Errors (http://validator.w3.org) due to usage of & instead of &. See http://www.htmlhelp.com/tools/validator/problems.html#amp for details.

Current code:
<!-- Piwik Image Tracker -->
<img src="http://.../piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik -->

Should be:
<!-- Piwik Image Tracker -->
<img src="http://.../piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik -->

Additional remark: Following forum topic seems to relate to a similar error elsewhere: http://forum.piwik.org/read.php?2,75981

@robocoder commented on September 3rd 2011 Contributor

most browsers can disambiguate the URL, i.e., &rec isn't treated as an entity name because there's no semi-colon.

@mattab commented on September 27th 2011 Member

Actually a documentation issue more than a code issue.

@mattab commented on September 27th 2011 Member

(In [5232]) Fixes #2642 - adding calls to str_replace(&amp)

@anonymous-piwik-user commented on October 22nd 2011

Re-submitted the issue in the image tracking code as ticket #2733. Unfortunately, the issue in the "Image Tracker code" shown in the web interface is still present in Piwik version 1.6. Despite the fact that "&" is present in DisplayAlternativeTags.tpl.

This Issue was closed on October 22nd 2011
Powered by GitHub Issue Mirror