[Nuxeo-tickets] [Nuxeo Repository] #1819: links in the Link Widget are HTML escaped

Nuxeo Repository trac at nuxeo.com
Tue Mar 13 12:07:57 CET 2007


#1819: links in the Link Widget are HTML escaped
-------------------------+--------------------------------------------------
 Reporter:  jmorliaguet  |       Owner:  fguillaume
     Type:  defect       |      Status:  new       
 Priority:  P1           |   Milestone:  CPS 3.4.5 
Component:  CPSSchemas   |     Version:  TRUNK     
 Severity:  major        |    Keywords:            
-------------------------+--------------------------------------------------
 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>

 }}}

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1819>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.