<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Text_Wiki_Mediawiki</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/18092" />
      <rdf:li rdf:resource="http://pear.php.net/bug/17393" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16701" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14652" />
      <rdf:li rdf:resource="http://pear.php.net/bug/8504" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/18092">
      <title>Text_Wiki_Mediawiki: Bug 18092 [Open] mediawiki parser breaks on links with single quotes in</title>
      <link>http://pear.php.net/bugs/18092</link>
      <content:encoded><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by jonnybradley
2010-12-02T01:32:03+00:00
PHP: 5.3.2 OS: any Package Version: 

Description:
------------
mediawiki parser stops parsing when it gets to a link with single 
quotes in (using this in Tiki v6.x SVN).
Presumably this is failing in 
pear/Text/Wiki/Parse/Mediawiki/Url.php

Test script:
---------------
example source from wikipedia: &quot;Florida High Speed Rail&quot;

[http://www2.tbo.com ''The Tampa Tribune'' (TBO.com).]



Expected result:
----------------
[http://www2.tbo.com|''The Tampa Tribune'' (TBO.com).]

Actual result:
--------------
[http://www2.tbo.com|</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by jonnybradley
2010-12-02T01:32:03+00:00
PHP: 5.3.2 OS: any Package Version: 

Description:
------------
mediawiki parser stops parsing when it gets to a link with single 
quotes in (using this in Tiki v6.x SVN).
Presumably this is failing in 
pear/Text/Wiki/Parse/Mediawiki/Url.php

Test script:
---------------
example source from wikipedia: &quot;Florida High Speed Rail&quot;

[http://www2.tbo.com ''The Tampa Tribune'' (TBO.com).]



Expected result:
----------------
[http://www2.tbo.com|''The Tampa Tribune'' (TBO.com).]

Actual result:
--------------
[http://www2.tbo.com|</pre>]]></description>
      <dc:date>2014-06-05T09:00:49+00:00</dc:date>
      <dc:creator>jonny &amp;#x61;&amp;#116; tiki &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>Text_Wiki_Mediawiki Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/17393">
      <title>Text_Wiki_Mediawiki: Bug 17393 [Open] definition list in list</title>
      <link>http://pear.php.net/bugs/17393</link>
      <content:encoded><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by ken
2010-05-13T11:41:47+00:00
PHP: 5.3.2 OS: Ubuntu Package Version: 0.2.0

Description:
------------
text_wiki_mediawiki Unrecognized tag *; or *:

Test script:
---------------
* item first
* item second
*: definition text
* item third
*; definition term : definition text
* item last


Expected result:
----------------
&lt;ul&gt;
  &lt;li&gt; item first&lt;/li&gt;
  &lt;li&gt; item second
    &lt;dl&gt;
      &lt;dd&gt; definition text&lt;/dd&gt;
    &lt;/dl&gt;
  &lt;/li&gt;
  &lt;li&gt; item third
    &lt;dl&gt;
      &lt;dt&gt; definition termÂ &lt;/dt&gt;
      &lt;dd&gt; definition text&lt;/dd&gt;
    &lt;/dl&gt;
&lt;/li&gt;
&lt;li&gt; item last&lt;/li&gt;
&lt;/ul&gt;


Actual result:
--------------
&lt;ul&gt;
  &lt;li&gt; item first&lt;/li&gt;
  &lt;li&gt; item second&lt;/li&gt;
  &lt;li&gt;: definition text&lt;/li&gt;
  &lt;li&gt; item third&lt;/li&gt;
  &lt;li&gt;; definition term : definition text&lt;/li&gt;
  &lt;li&gt; item last&lt;/li&gt;
&lt;/ul&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by ken
2010-05-13T11:41:47+00:00
PHP: 5.3.2 OS: Ubuntu Package Version: 0.2.0

Description:
------------
text_wiki_mediawiki Unrecognized tag *; or *:

Test script:
---------------
* item first
* item second
*: definition text
* item third
*; definition term : definition text
* item last


Expected result:
----------------
&lt;ul&gt;
  &lt;li&gt; item first&lt;/li&gt;
  &lt;li&gt; item second
    &lt;dl&gt;
      &lt;dd&gt; definition text&lt;/dd&gt;
    &lt;/dl&gt;
  &lt;/li&gt;
  &lt;li&gt; item third
    &lt;dl&gt;
      &lt;dt&gt; definition termÂ &lt;/dt&gt;
      &lt;dd&gt; definition text&lt;/dd&gt;
    &lt;/dl&gt;
&lt;/li&gt;
&lt;li&gt; item last&lt;/li&gt;
&lt;/ul&gt;


Actual result:
--------------
&lt;ul&gt;
  &lt;li&gt; item first&lt;/li&gt;
  &lt;li&gt; item second&lt;/li&gt;
  &lt;li&gt;: definition text&lt;/li&gt;
  &lt;li&gt; item third&lt;/li&gt;
  &lt;li&gt;; definition term : definition text&lt;/li&gt;
  &lt;li&gt; item last&lt;/li&gt;
&lt;/ul&gt;</pre>]]></description>
      <dc:date>2010-05-13T11:41:47+00:00</dc:date>
      <dc:creator>kenchou77 &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Text_Wiki_Mediawiki Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16701">
      <title>Text_Wiki_Mediawiki: Bug 16701 [Open] XSS with Tables possible</title>
      <link>http://pear.php.net/bugs/16701</link>
      <content:encoded><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by jurik
2009-10-15T15:15:16+00:00
PHP: 5.2.5 OS: Linux Package Version: 0.2.0

Description:
------------
One can inject javascript code in table definitions.

Our resolution:

in Parse/Mediawiki/Table.php
-----------------------
--- add code ---
    /**
     * Remove all bogus formatting
     * Allowed are key=&quot;value&quot; pairs only
     *
     * @param string $format
     * @return string
     */
    private function _cleanupFormat($format)
    {
      $validAttrs = array();
      // regex pitch: (\w) = [&quot;'] (.*) [&quot;']
      if (preg_match_all('/\s*(\w+)\s*=\s*([&quot;\'])(.*)\\2/U', $format, $matches)) {
        for ($i = 0; $i &lt; count($matches[0]); $i++) {
          $validAttrs[] = $matches[1][$i] . '=&quot;' . htmlspecialchars($matches[3][$i], ENT_QUOTES) . '&quot;';
        }        
      }
      
      return implode(' ', $validAttrs);
    }
----------------------
--- around line 170 replace with ---
        if ($format = trim($matches[1])) {
            $param['format'] = $this-&gt;_cleanupFormat($format);
        }
---


Test script:
---------------
You can try to render this snippet:

{| &gt;&lt;script&gt;alert('gotcha!');&lt;/script
|}

Actual result:
--------------
javascript gets executed</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by jurik
2009-10-15T15:15:16+00:00
PHP: 5.2.5 OS: Linux Package Version: 0.2.0

Description:
------------
One can inject javascript code in table definitions.

Our resolution:

in Parse/Mediawiki/Table.php
-----------------------
--- add code ---
    /**
     * Remove all bogus formatting
     * Allowed are key=&quot;value&quot; pairs only
     *
     * @param string $format
     * @return string
     */
    private function _cleanupFormat($format)
    {
      $validAttrs = array();
      // regex pitch: (\w) = [&quot;'] (.*) [&quot;']
      if (preg_match_all('/\s*(\w+)\s*=\s*([&quot;\'])(.*)\\2/U', $format, $matches)) {
        for ($i = 0; $i &lt; count($matches[0]); $i++) {
          $validAttrs[] = $matches[1][$i] . '=&quot;' . htmlspecialchars($matches[3][$i], ENT_QUOTES) . '&quot;';
        }        
      }
      
      return implode(' ', $validAttrs);
    }
----------------------
--- around line 170 replace with ---
        if ($format = trim($matches[1])) {
            $param['format'] = $this-&gt;_cleanupFormat($format);
        }
---


Test script:
---------------
You can try to render this snippet:

{| &gt;&lt;script&gt;alert('gotcha!');&lt;/script
|}

Actual result:
--------------
javascript gets executed</pre>]]></description>
      <dc:date>2009-10-15T15:15:16+00:00</dc:date>
      <dc:creator>mail &amp;#x61;&amp;#116; jurikuehn &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>Text_Wiki_Mediawiki Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14652">
      <title>Text_Wiki_Mediawiki: Bug 14652 [Open] Mediawiki preformatted backslash</title>
      <link>http://pear.php.net/bugs/14652</link>
      <content:encoded><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by js290
2008-09-16T23:26:16+00:00
PHP: 4.3.11 OS: Linux Package Version: 

Description:
------------
Using &lt;code&gt;&lt;pre&gt;, the \ character is not shown literally.  It seems to treat it as a placeholder line continuation.  

So, the following markup:

&lt;code&gt;&lt;pre&gt;
/------------------------------------------------------------------------------\
|                                Boot Options                                  |
\------------------------------------------------------------------------------/
&lt;/pre&gt;&lt;/code&gt;

displays as:

/------------------------------------------------------------------------------|                                Boot Options                                  |
\------------------------------------------------------------------------------/


The \ disappears, and the line following the \ is joined with the previous line where the \ was.

Test script:
---------------
&lt;code&gt;&lt;pre&gt;
/------------------------------------------------------------------------------\
|                                Boot Options                                  |
\------------------------------------------------------------------------------/
&lt;/pre&gt;&lt;/code&gt;

Expected result:
----------------
/------------------------------------------------------------------------------\
|                                Boot Options                                  |
\------------------------------------------------------------------------------/

Actual result:
--------------
/------------------------------------------------------------------------------|                                Boot Options                                  |
\------------------------------------------------------------------------------/</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Wiki_Mediawiki Bug
Reported by js290
2008-09-16T23:26:16+00:00
PHP: 4.3.11 OS: Linux Package Version: 

Description:
------------
Using &lt;code&gt;&lt;pre&gt;, the \ character is not shown literally.  It seems to treat it as a placeholder line continuation.  

So, the following markup:

&lt;code&gt;&lt;pre&gt;
/------------------------------------------------------------------------------\
|                                Boot Options                                  |
\------------------------------------------------------------------------------/
&lt;/pre&gt;&lt;/code&gt;

displays as:

/------------------------------------------------------------------------------|                                Boot Options                                  |
\------------------------------------------------------------------------------/


The \ disappears, and the line following the \ is joined with the previous line where the \ was.

Test script:
---------------
&lt;code&gt;&lt;pre&gt;
/------------------------------------------------------------------------------\
|                                Boot Options                                  |
\------------------------------------------------------------------------------/
&lt;/pre&gt;&lt;/code&gt;

Expected result:
----------------
/------------------------------------------------------------------------------\
|                                Boot Options                                  |
\------------------------------------------------------------------------------/

Actual result:
--------------
/------------------------------------------------------------------------------|                                Boot Options                                  |
\------------------------------------------------------------------------------/</pre>]]></description>
      <dc:date>2014-06-05T09:00:07+00:00</dc:date>
      <dc:creator>sujiannming &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Text_Wiki_Mediawiki Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/8504">
      <title>Text_Wiki_Mediawiki: Feature/Change Request 8504 [Open] MediaWiki citation format</title>
      <link>http://pear.php.net/bugs/8504</link>
      <content:encoded><![CDATA[<pre>Text_Wiki_Mediawiki Feature/Change Request
Reported by bjs5075@...
2006-08-18T14:26:45+00:00
PHP: 5.1.4 OS: Debian etch Package Version: CVS

Description:
------------
I have created a MediaWiki-style citation parser/renderer 
this spans more than one PEAR package, and is quite 
specific to mediawiki, so I'm posting the notice here.
There are four files involved, so I don't want to paste 
them in here.

If you want the files, you can email me directly.
I don't know if you will be able to easily integrate them, 
but I want to release the source now so that it can be 
worked on later.

Test script:
---------------
Citation format:
text1&lt;ref&gt;reference text&lt;/ref&gt;

text2&lt;ref name=&quot;this&quot;&gt;that&lt;/ref&gt;

text3&lt;ref name=&quot;this&quot; /&gt;

text4&lt;ref name=&quot;this&quot;&gt;

etc.

&lt;references /&gt;


Expected result:
----------------
text1 [1]
text2 [2]
text3 [2]
text4 [2]

1. ^ reference text
2. ^abc that


Actual result:
--------------
Currently no support</pre>]]></content:encoded>
      <description><![CDATA[<pre>Text_Wiki_Mediawiki Feature/Change Request
Reported by bjs5075@...
2006-08-18T14:26:45+00:00
PHP: 5.1.4 OS: Debian etch Package Version: CVS

Description:
------------
I have created a MediaWiki-style citation parser/renderer 
this spans more than one PEAR package, and is quite 
specific to mediawiki, so I'm posting the notice here.
There are four files involved, so I don't want to paste 
them in here.

If you want the files, you can email me directly.
I don't know if you will be able to easily integrate them, 
but I want to release the source now so that it can be 
worked on later.

Test script:
---------------
Citation format:
text1&lt;ref&gt;reference text&lt;/ref&gt;

text2&lt;ref name=&quot;this&quot;&gt;that&lt;/ref&gt;

text3&lt;ref name=&quot;this&quot; /&gt;

text4&lt;ref name=&quot;this&quot;&gt;

etc.

&lt;references /&gt;


Expected result:
----------------
text1 [1]
text2 [2]
text3 [2]
text4 [2]

1. ^ reference text
2. ^abc that


Actual result:
--------------
Currently no support</pre>]]></description>
      <dc:date>2006-08-18T14:26:45+00:00</dc:date>
      <dc:creator>bjs5075 &amp;#x61;&amp;#116; rit &amp;#x64;&amp;#111;&amp;#x74; edu</dc:creator>
      <dc:subject>Text_Wiki_Mediawiki Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
