Ticket #1819 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

links in the Link Widget are HTML escaped

Reported by: jmorliaguet Assigned to: madarche
Priority: P1 Milestone: CPS 3.4.4
Component: CPSSchemas Version: TRUNK
Severity: major Keywords:
Cc:

Description

The Link Widget renders links as:

  * Link title
    description
    http://the.actual.url

the link in the title is correctly rendered, but the link under the title (http://....) is HTML-escaped, hence http://site.com/site/?p=1&s=2 becomes http://site.com/site/?p=1&s=2

which is incorrect. This occurs both in Web documents and in Link documents.

probably the idea was to quote them instead (from urllib import quote)?

    <a href="" tal:attributes="href href_url;title title|nothing;"> <<<<<<<<<<<<<< OK
      <strong tal:content="structure python: test(content, content, href_url)" />
    </a>
    <tal:block condition="has_byline">
      <span tal:define="byline python: cells[3]['widget_rendered'];"
            tal:content="structure byline" />
    </tal:block>
    <div style="padding-left: 1.5em;">
      <span tal:condition="title" tal:content="structure title" />
      <div tal:content="structure href" /> <<<<<<<<<<<<<<<<<< HTML-escaped
    </div>

Change History

03/22/07 15:29:21 changed by madarche

  • owner changed from fguillaume to madarche.
  • milestone changed from CPS 3.4.5 to CPS 3.4.4.

03/26/07 15:54:44 changed by madarche

  • status changed from new to closed.
  • resolution set to fixed.

Fixed by changeset [51409].