Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.4

Bug #11399 img tags don't work
Submitted: 2007-06-22 08:50 UTC
From: avoid Assigned:
Status: Bogus Package: HTML_BBCodeParser (version 1.2.1)
PHP Version: 5.2.1 OS: Suse Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 43 - 12 = ?

 
 [2007-06-22 08:50 UTC] avoid (Arjan Haverkamp)
Description: ------------ Feeding the parser with the following code does not work: [img]http://www.mysite.com/images/logo.gif[/img] Same for this one: [img w=80 h=25]http://www.mysite.com/images/logo.gif[/img] I am using this ini file: [HTML_BBCodeParser] filters = Basic,Extended,Links,Images,Lists,Email Expected result: ---------------- <img src="http://www.mysite.com/images/logo.gif" /> <img src="http://www.mysite.com/images/logo.gif" width="80" height="25" /> Actual result: -------------- [img=<a href="http://www.mysite.com/images/logo.gif">http://www.mysite.com/images/logo.gif</a>] [img=<a href="http://www.mysite.com/images/logo.gif">http://www.mysite.com/images/logo.gif</a> w=80 h=25]

Comments

 [2007-06-22 09:18 UTC] avoid (Arjan Haverkamp)
The problem only arises when both the Links and Images filters are enabled. When only Images is enabled, it does seem to work okay. Still quite a bug though...
 [2007-06-27 14:40 UTC] meuledor (Pierre-Julien Margotin)
I had the same problem and I just understood why: The class parse your string in the order of filter. So change: [HTML_BBCodeParser] filters = Basic,Extended,Links,Images,Lists,Email To [HTML_BBCodeParser] filters = Basic,Extended,Images,Links,Lists,Email and images parsing will works ;) Meuledor - fqp team
 [2007-07-02 16:43 UTC] cweiske (Christian Weiske)
Seems there is a solution.