[wp-trac] [WordPress Trac] #6888: A complex 'title' attribute can be truncated

WordPress Trac wp-trac at lists.automattic.com
Thu May 1 03:16:43 GMT 2008


#6888: A complex 'title' attribute can be truncated
------------------------+---------------------------------------------------
 Reporter:  tellyworth  |       Owner:  anonymous
     Type:  defect      |      Status:  new      
 Priority:  normal      |   Milestone:  2.6      
Component:  General     |     Version:           
 Severity:  normal      |    Keywords:           
------------------------+---------------------------------------------------
 Example here:

 http://bpr3.org/?p=87

 Reproduced in a unit test here, class WPTestAttributeFiltering:

 http://svn.automattic.com/wordpress-tests/wp-testcase/test_post_output.php

 Test results:

 {{{
 1) test_the_content(WPTestAttributeFiltering)
 Failed asserting that two strings are equal.
 expected string <<p><span class="Z3988"
 title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.aulast=Mariat&rft.aufirst=Denis&rft.
 au=Denis+Mariat&rft.au=Sead+Taourit&rft.au=G%C3%A9rard+Gu%C3%A9rin&
 rft.title=Genetics+Selection+Evolution&rft.atitle=&rft.date=2003&rft.
 volume=35&rft.issue=1&rft.spage=119&rft.epage=133&rft.genre=article&
 rft.id=info:DOI/10.1051%2Fgse%3A2002039"></span>Mariat, D., Taourit, S.,
 Guérin, G. (2003). . <span style="font-style: italic;">Genetics Selection
 Evolution, 35</span>(1), 119-133. DOI: <a rev="review" href=
 "http://dx.doi.org/10.1051/gse:2002039">10.1051/gse:2002039</a></p>>
 difference      <
 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????>
 got string      <<p><span class="Z3988"
 title="DOI/10.1051%2Fgse%3A2002039"></span>Mariat, D., Taourit, S.,
 Guérin, G. (2003). . <span style="italic;">Genetics Selection Evolution,
 35</span>(1), 119-133. DOI: <a rev="review"
 href="http://dx.doi.org/10.1051/gse:2002039">10.1051/gse:2002039</a></p>>
 }}}

 The results match those shown in the blog post.  Presumably a kses issue.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6888>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list