Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#2733 closed Bug (fixed)

HTML Validation Errors in Image Tracking Code

Reported by: jawsmith Owned by:
Priority: low Milestone: 1.7 Piwik 1.7
Component: Documentation Keywords:
Cc: Sensitive: no

Description

This is re-reporting of the image tracking code issue reported in ticket #2642. 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.

Change History (5)

comment:1 Changed 2 years ago by matt (mattab)

  • Resolution set to worksforme
  • Status changed from new to closed

Works for me - if you experience an error please post it here...

comment:2 Changed 2 years ago by jawsmith

I didn't mean the API functions - that seems to be fine. I meant the "Piwik Image Tracker" as shown in Piwik web interface (or should I better call it "user interface"?) under "Settings" - "Websites" - "View Tracking code" - "Display Image Tracker code".

It seems that the "&amp;" in the template gets converted to "&" in the web interface. (Just like, e.g., "&lt;" gets converted to "<".) Is it possible that the leading "&" needs to be escaped, so that "&amp;" is kept in the web interface? (I don't know much about PHP/HTML.)

Thanks!

comment:3 Changed 2 years ago by jawsmith

Or maybe urlencode() or htmlspecialchars() or htmlentities() with "&" needs to be used?

comment:4 Changed 2 years ago by matt (mattab)

  • Summary changed from HTML Validation Errors in Tracking Code to HTML Validation Errors in Image Tracking Code

comment:5 Changed 2 years ago by matt (mattab)

  • Resolution changed from worksforme to fixed

(In [5374]) Fixes #2733

Note: See TracTickets for help on using tickets.