Download & Extend

inline.module does not recognize multiple [inline] tags

Project:Inline
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:matteo
Status:closed (fixed)

Issue Summary

If the text of a node contains multiple [inline] tags, garbage is displayed.
the problem was caused by wrong regular expression that tests the presence of inline tags inside text.
Here is the correct code:

    if (preg_match_all("/\[(inline|file|attachment):(\d+)=?(.[^\]]*)\]/i", $node->body, $match)) {

Please download the latest (12-24-2004) version that contains the fix.

Comments

#1

nobody click here