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

Bug #10616 Values are being truncated when a space is found.
Submitted: 2007-04-04 21:03 UTC
From: thewarden Assigned: dufuz
Status: Closed Package: HTML_BBCodeParser (version CVS)
PHP Version: 5.1.4 OS: OpenBSD v3.7 i386
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-04 21:03 UTC] thewarden (Adam Douglas)
Description: ------------ I've discovered that when an value has a space within the value the value is truncated at the first occurrence of the space. This applies to a URL, image file names and any additional attribute values. Yes the URL should be encoded and this should resolve the problem. However this applies to any other situation where a value that legitimately contains a space. BTW, this problem exists with BBCodeParser stable release and the latest release in CVS. Test script: --------------- Example of BBCode (without quotes), "[img w=100 h=99 alt=Enthalpy Wheel]/images/Enthalpy Wheel.png[/img]". Look at the Images.php file part of the Pear::HTML_BBCodeParser package. The only addition I've done is added an attribute of alt. I did this like so without the double quotes, "'alt' => 'alt=%2$s%1$s%2$s'" at the end of the attributes array. This problem seems to exist across the board even without added additional attributes. Expected result: ---------------- <img src="/images/Enthalpy Wheel.jpg" width="100" height="99" alt="Enthalpy Wheel" /> Actual result: -------------- <img src="/images/Enthalpy" width="100" height="99" alt="Enthalpy" />

Comments

 [2007-06-04 21:11 UTC] dufuz (Helgi Þormar)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.