PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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]), ' ');