Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14708

ezurl datatype renders invalid HTML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 4.0.7, 4.1.4, 4.2.0
    • Fix Version/s: 4.1.5, 4.2.1, 4.3.0alpha1
    • Labels:
      None
    • Environment:

      Operating System: Linux
      PHP Version: 5.2.8
      Database and version: MySQL
      Browser (and version): FF 3.0, FF 3.1, IE 6.0

      Description

      design/standard/templates/content/datatype/view/ezurl.tpl:

      {section show=$attribute.data_text}
      <a href="{$attribute.content}">{$attribute.data_text|wash( xhtml )}</a>
      {section-else}
      <a href="{$attribute.content}">{$attribute.content|wash( xhtml )}</a>
      {/section}
      

      $attribute.content may contain "&" which must be transformed to "&" some cleaning is required with wash (or ezurl/ezroot/exturl ?)

        Attachments

          Activity

            People

            Assignee:
            patrick.allaert Patrick Allaert
            Reporter:
            patrick.allaert Patrick Allaert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: