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

Request #4520 Additional space confuses image tag
Submitted: 2005-06-03 04:24 UTC Modified: 2005-07-16 03:15 UTC
From: strauchdieb at gmx dot de Assigned: toggg
Status: Closed Package: Text_Wiki
PHP Version: 4.3.9 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-03 04:24 UTC] strauchdieb at gmx dot de
Description: ------------ If you type [[image img.png]] (two spaces between image an d img.png) you get an empty src attribute. Reproduce code: --------------- The solution: Change line 67 of parse/Image.php from $pos = strpos($matches[2], ' '); to $pos = strpos(trim($matches[2]), ' ');

Comments

 [2005-07-16 03:15 UTC] toggg
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. The regexp has been adapted to mache one or more spaces after [[image