Home » Text » Text_Wiki » Bug #4520
Additional space confuses image tag
Details
| Request #4520 | Additional space confuses image tag |
|---|---|
| Submitted | 2005-06-03 09:24 UTC |
| From | strauchdieb at gmx dot de |
| Assigned | toggg |
| Status | Closed |
| Package | Text_Wiki |
| PHP Version | 4.3.9 |
| OS | Irrelevant |
| 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]), ' ');