PEAR is archived and read-only

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

Home » Text » Text_Wiki_Mediawiki » Bug #8501

HTML-inherited inline tag regex need to be minimal

Details

Submitted2006-08-18 12:57 UTC
Frombjs5075 at rit dot edu
Assignedritzmo
StatusClosed
PackageText_Wiki_Mediawiki
PHP Version5.1.4
OSDebian 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.