PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Wiki » Bug #4520

Additional space confuses image tag

Details

Request #4520Additional space confuses image tag
Submitted2005-06-03 09:24 UTC
Fromstrauchdieb at gmx dot de
Assignedtoggg
StatusClosed
PackageText_Wiki
PHP Version4.3.9
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-06-03 09: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]), ' ');