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

Wikilinks must be parsed before Tables

Details

Submitted2006-08-09 20:25 UTC
Frombjs5075 at rit dot edu
StatusNo Feedback
PackageText_Wiki_Mediawiki
PHP Version5.1.4
OSDebian etch
Roadmaps(Not assigned)

Comments

[2006-08-09 20:25 UTC] bjs5075 at rit dot edu

Description:
------------
Markup like this will produce invalid HTML because of the link's pipe being matched by the table.

Fixing it requires movning the Wikilink parser above Table so that the pipe from the link goes away before the table sees it.

Test script:
---------------
{|
|[[link|here]]
|}

Expected result:
----------------
<table>
<tr>
<td><a href=".../link">here</a></td>
</tr>
<tr>
</tr>
</table>

Actual result:
--------------
<table>
<tr>
<td [[link>here]] </td>
</tr>
<tr>
</tr>
</table>

[2006-08-09 20:27 UTC] bjs5075 at rit dot edu

Another (nicer) way to fix it is require that all text that is inserted into the <td> tag is valid key="value" pairs.

This would solve the problem without reordering the renderer *and* ensure that no nasty text gets into the raw HTML.

[2006-08-15 15:07 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.