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

ezurl datatype renders invalid HTML

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.1.5, 4.2.1, 4.3.0alpha1
    • 4.0.7, 4.1.4, 4.2.0
    • None
    • 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

            patrick.allaert patrick.allaert
            patrick.allaert patrick.allaert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: