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 #8505

Code block regex incorrect

Details

Submitted2006-08-18 14:31 UTC
Frombjs5075 at rit dot edu
Assignedritzmo
StatusNo Feedback
PackageText_Wiki_Mediawiki
PHP Version5.1.4
OSDebian etch
Roadmaps(Not assigned)

Comments

[2006-08-18 14:31 UTC] bjs5075 at rit dot edu

Description:
------------
The regexp for Code elements should not force the tags to
start a line and end a line, eg. it should be:
';<code(\s[^>]*)?>\n?((?:(?R)|.)*?)\n?</code>;msi'

rather than current:
';^<code(\s[^>]*)?>\n?((?:(?R)|.)*?)\n?</code>(\s|$);msi'

This is just going by what MediaWiki parses currently.

Test script:
---------------
text<code>test</code>text

Expected result:
----------------
Matches regexp:
text<code>test</code>text

Actual result:
--------------
No match:
text<code>test</code>text

[2006-08-18 14:52 UTC] ritzmo at php dot net

Thank you for taking the time to report a problem with the package.
This problem may have been already fixed by a previous change that
is in the CVS of the package. Please log into CVS with:

cvs -d :pserver:cvsread@cvs.php.net:/repository login

and check out the CVS repository of this package and upgrade

cvs -d :pserver:cvsread@cvs.php.net:/repository co pear/Text_Wiki_Mediawiki
pear upgrade pear/Text_Wiki_Mediawiki/package2.xml

or

pear upgrade pear/Text_Wiki_Mediawiki/package.xml

If you are able to reproduce the bug with the latest CVS,
please change the status back to "Open".
Again, thank you for your continued support of PEAR.