Home » Text » Text_Wiki_Mediawiki » Bug #8501
HTML-inherited inline tag regex need to be minimal
Details
| Submitted | 2006-08-18 12:57 UTC |
|---|---|
| From | bjs5075 at rit dot edu |
| Assigned | ritzmo |
| Status | Closed |
| Package | Text_Wiki_Mediawiki |
| PHP Version | 5.1.4 |
| OS | Debian etch |
| Roadmaps | (Not assigned) |
Comments
[2006-08-18 12:57 UTC] bjs5075 at rit dot edu
Description:
------------
The regex strings for:
Sub
Sup
Tt
need to either have the 'U' option set or the internal
match should be '.*?' not '.*', so that they don't try to
match too much
eg. Tt's should be:
'/<tt>(.*)<\/tt>/Us'
Test script:
---------------
<tt>text</tt> break <tt>here</tt>
Expected result:
----------------
<tt>text</tt> break <tt>here</tt>
Actual result:
--------------
<tt>text</tt> break <tt>here</tt>
[2006-08-18 13:25 UTC] ritzmo at php dot net
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.