<?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=HTML_BBCodeParser</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/16219" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14579" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14380" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12644" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12423" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12273" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12215" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12187" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12002" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11684" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11576" />
      <rdf:li rdf:resource="http://pear.php.net/bug/7230" />
      <rdf:li rdf:resource="http://pear.php.net/bug/4936" />

     </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/16219">
      <title>HTML_BBCodeParser: Bug 16219 [Open] [size=9] Doesn't work (int &gt; 9 does)</title>
      <link>http://pear.php.net/bugs/16219</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by dmagnetic
2009-05-11T20:53:12+00:00
PHP: 5.2.9 OS:  Package Version: 1.2.2

Description:
------------
[size=9]Some size 9 text[/size]

Produces

&lt;span&gt;Some size 9 text&lt;/span&gt;

So no font-size is being applied. As soon as the font-size is 
10+ it works fine.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by dmagnetic
2009-05-11T20:53:12+00:00
PHP: 5.2.9 OS:  Package Version: 1.2.2

Description:
------------
[size=9]Some size 9 text[/size]

Produces

&lt;span&gt;Some size 9 text&lt;/span&gt;

So no font-size is being applied. As soon as the font-size is 
10+ it works fine.</pre>]]></description>
      <dc:date>2009-05-23T18:09:06+00:00</dc:date>
      <dc:creator>digitalmagnets &amp;#x61;&amp;#116; googlemail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14579">
      <title>HTML_BBCodeParser: Bug 14579 [Open] security risc: javascript code injection is possible</title>
      <link>http://pear.php.net/bugs/14579</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by netsrac
2008-08-29T05:36:50+00:00
PHP: 5.2.6 OS: Debian Package Version: 1.2.2

Description:
------------
With the current parser its possible to insert and run javascriptcode in a parsed bb-code text.

Big problem is the handling of tag-attribudes like color.
following changes css-code for example
[color=;padding:3px;border-width:XYZ]

With these changes you could place a tranceparent gif over the whole page where every click starts a javascript routine...

[color='eventhandler='javascript][/color]

[img]adresse'eventhandler='javascript[/img]

With that it is easily possible to create worms in communitys using bb-code where the visitor of the modified profile get his own bode. 
using [font]attribure with 0px height you can even hide the code in a profil.

This Bug is also listet here

http://pear.php.net/bugs/bug.php?id=5609

but the fix there is not a realy solution

Find the function  _buildParsedString() in BBCodeParser.php

Find the line with 

foreach ($tag['attributes'] as $a =&gt; $v) {

and add following lines

$v = str_replace(&quot;(&quot;, '', $v);
$v = str_replace(&quot;)&quot;, '', $v);			
$v = @preg_replace(&quot;/[^a-zA-Z0-9.,\/:~#-\_]/&quot;, &quot;&quot;, $v);
$v = str_replace(&quot;'&quot;, '&quot;', $v);

This removes ( ) and some other chars from all attributes of the tag. 
I know that this is just the quick n dirty way, but i needed a fast solution so let no javascript get run.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by netsrac
2008-08-29T05:36:50+00:00
PHP: 5.2.6 OS: Debian Package Version: 1.2.2

Description:
------------
With the current parser its possible to insert and run javascriptcode in a parsed bb-code text.

Big problem is the handling of tag-attribudes like color.
following changes css-code for example
[color=;padding:3px;border-width:XYZ]

With these changes you could place a tranceparent gif over the whole page where every click starts a javascript routine...

[color='eventhandler='javascript][/color]

[img]adresse'eventhandler='javascript[/img]

With that it is easily possible to create worms in communitys using bb-code where the visitor of the modified profile get his own bode. 
using [font]attribure with 0px height you can even hide the code in a profil.

This Bug is also listet here

http://pear.php.net/bugs/bug.php?id=5609

but the fix there is not a realy solution

Find the function  _buildParsedString() in BBCodeParser.php

Find the line with 

foreach ($tag['attributes'] as $a =&gt; $v) {

and add following lines

$v = str_replace(&quot;(&quot;, '', $v);
$v = str_replace(&quot;)&quot;, '', $v);			
$v = @preg_replace(&quot;/[^a-zA-Z0-9.,\/:~#-\_]/&quot;, &quot;&quot;, $v);
$v = str_replace(&quot;'&quot;, '&quot;', $v);

This removes ( ) and some other chars from all attributes of the tag. 
I know that this is just the quick n dirty way, but i needed a fast solution so let no javascript get run.</pre>]]></description>
      <dc:date>2008-08-29T05:36:50+00:00</dc:date>
      <dc:creator>carsten &amp;#x61;&amp;#116; vonskrbensky &amp;#x64;&amp;#111;&amp;#x74; de</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14380">
      <title>HTML_BBCodeParser: Bug 14380 [Verified] Image Filter does not generate alt by default</title>
      <link>http://pear.php.net/bugs/14380</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by detritus
2008-07-21T12:19:01+00:00
PHP: Irrelevant OS:  Package Version: 1.2.2

Description:
------------
The Image Filter ([img][/img]) does not currently create a default alternative text (alt=&quot;&quot;) resulting in common usage of image BB code being non-standard compliant XHTML 1.0.

Test script:
---------------
&lt;?php
$parser = new HTML_BBCodeParser();
$parser-&gt;addFilter('Images');
echo $parser-&gt;qparse('[img]example.png[/img]');

echo $parser-&gt;qparse('[img alt=Example image]example.png[/img]');
?&gt;

Expected result:
----------------
&lt;img src=&quot;example.png&quot; alt=&quot;&quot; /&gt;
&lt;img src=&quot;example.png&quot; alt=&quot;Example Image&quot; /&gt;

Actual result:
--------------
&lt;img src=&quot;example.png&quot; /&gt;
&lt;img src=&quot;example.png&quot; alt=&quot;Example Image&quot; /&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by detritus
2008-07-21T12:19:01+00:00
PHP: Irrelevant OS:  Package Version: 1.2.2

Description:
------------
The Image Filter ([img][/img]) does not currently create a default alternative text (alt=&quot;&quot;) resulting in common usage of image BB code being non-standard compliant XHTML 1.0.

Test script:
---------------
&lt;?php
$parser = new HTML_BBCodeParser();
$parser-&gt;addFilter('Images');
echo $parser-&gt;qparse('[img]example.png[/img]');

echo $parser-&gt;qparse('[img alt=Example image]example.png[/img]');
?&gt;

Expected result:
----------------
&lt;img src=&quot;example.png&quot; alt=&quot;&quot; /&gt;
&lt;img src=&quot;example.png&quot; alt=&quot;Example Image&quot; /&gt;

Actual result:
--------------
&lt;img src=&quot;example.png&quot; /&gt;
&lt;img src=&quot;example.png&quot; alt=&quot;Example Image&quot; /&gt;</pre>]]></description>
      <dc:date>2008-07-26T08:23:39+00:00</dc:date>
      <dc:creator>detritus &amp;#x61;&amp;#116; blueyonder &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; uk</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12644">
      <title>HTML_BBCodeParser: Bug 12644 [Open] [url=http://www.google.nl]http://www.google.nl[/url] expands strange</title>
      <link>http://pear.php.net/bugs/12644</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by jakster
2007-12-09T07:27:32+00:00
PHP: 5.2.0 OS: Debian Package Version: 1.2.2

Description:
------------
See the code examples. To fix this (I got no time to make a patch, sorry), add beneath:

//If we have an intro tag that is [url], then skip this match
        if ($matches[1] == $o.'url'.$c) {
            return $matches[0];
        }

the following code:


        elseif(preg_match(&quot;/\[url=(.*)\]/i&quot;,$matches[1])){
            return $matches[0];
        }

Test script:
---------------
[url=http://www.google.nl]http://www.helpalot.org[/url]

Expected result:
----------------
&lt;a href=&quot;http://www.google.nl&quot;&gt;http://www.helpalot.org&lt;/a&gt;

Actual result:
--------------
&lt;a href=&quot;http://www.google.nl&quot;&gt;[url=http://www.helpalot.org/]http://www.helpalot.org&lt;/a&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by jakster
2007-12-09T07:27:32+00:00
PHP: 5.2.0 OS: Debian Package Version: 1.2.2

Description:
------------
See the code examples. To fix this (I got no time to make a patch, sorry), add beneath:

//If we have an intro tag that is [url], then skip this match
        if ($matches[1] == $o.'url'.$c) {
            return $matches[0];
        }

the following code:


        elseif(preg_match(&quot;/\[url=(.*)\]/i&quot;,$matches[1])){
            return $matches[0];
        }

Test script:
---------------
[url=http://www.google.nl]http://www.helpalot.org[/url]

Expected result:
----------------
&lt;a href=&quot;http://www.google.nl&quot;&gt;http://www.helpalot.org&lt;/a&gt;

Actual result:
--------------
&lt;a href=&quot;http://www.google.nl&quot;&gt;[url=http://www.helpalot.org/]http://www.helpalot.org&lt;/a&gt;</pre>]]></description>
      <dc:date>2007-12-09T07:27:32+00:00</dc:date>
      <dc:creator>jakster &amp;#x61;&amp;#116; gmx &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12423">
      <title>HTML_BBCodeParser: Feature/Change Request 12423 [Open] IRC links not allowed</title>
      <link>http://pear.php.net/bugs/12423</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by dazjorz
2007-11-11T06:55:14+00:00
PHP: 5.2.0 OS: GNU/Linux Package Version: 1.2.2

Description:
------------
I noticed that 'IRC' links (e.g. [url=irc://chat.freenode.net/php]#php[/url]) don't work. I fixed this by adding 'irc' to the $_allowedSchemes array. I added a patch below.

It would be nice if 'irc' would be seen as an allowed scheme in the official distribution.

Test script:
---------------
&lt;?php
/* BBCodeParser.ini contains:
 * filters = Links
 */
require_once 'HTML/BBCodeParser.php';
$p = new HTML_BBCodeParser(@parse_ini_file(&quot;BBCodeParser.ini&quot;));
echo $p-&gt;qParse(&quot;[url=irc://chat.freenode.net/php]#php[/url]&quot;);
/* Expected output:
 * &lt;a href=&quot;irc://chat.freenode.net/php&quot;&gt;#php&lt;/a&gt;
 * Got output:
 * #php
 */
?&gt;

Expected result:
----------------
I expect to get:
&lt;a href=&quot;irc://chat.freenode.net/php&quot;&gt;#php&lt;/a&gt;


Actual result:
--------------
I got:
#php</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by dazjorz
2007-11-11T06:55:14+00:00
PHP: 5.2.0 OS: GNU/Linux Package Version: 1.2.2

Description:
------------
I noticed that 'IRC' links (e.g. [url=irc://chat.freenode.net/php]#php[/url]) don't work. I fixed this by adding 'irc' to the $_allowedSchemes array. I added a patch below.

It would be nice if 'irc' would be seen as an allowed scheme in the official distribution.

Test script:
---------------
&lt;?php
/* BBCodeParser.ini contains:
 * filters = Links
 */
require_once 'HTML/BBCodeParser.php';
$p = new HTML_BBCodeParser(@parse_ini_file(&quot;BBCodeParser.ini&quot;));
echo $p-&gt;qParse(&quot;[url=irc://chat.freenode.net/php]#php[/url]&quot;);
/* Expected output:
 * &lt;a href=&quot;irc://chat.freenode.net/php&quot;&gt;#php&lt;/a&gt;
 * Got output:
 * #php
 */
?&gt;

Expected result:
----------------
I expect to get:
&lt;a href=&quot;irc://chat.freenode.net/php&quot;&gt;#php&lt;/a&gt;


Actual result:
--------------
I got:
#php</pre>]]></description>
      <dc:date>2007-11-11T06:55:14+00:00</dc:date>
      <dc:creator>sjorsgielen &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_BBCodeParser Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12273">
      <title>HTML_BBCodeParser: Documentation Problem 12273 [Open] End-user documentation is missing</title>
      <link>http://pear.php.net/bugs/12273</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Documentation Problem
Reported by motin
2007-10-18T12:41:30+00:00
PHP: 5.2.1 OS: All Package Version: 1.2.2

Description:
------------
To make this great class available for more users, why not put some short code examples as end-user documentation. 

At first I had to look in the file system just to be able to get the require_once right!

Then, I followed some examples in the main class phpDoc which  got me half-way, but I had to hunt down how to get BBCodeParser to parse [url][/url] by looking at the source code. 

So the bug here is: I click on Documentation...

Test script:
---------------
Click on Documentation on the Package summary page...

Expected result:
----------------
[The information from the phpDoc of the main class]

Here is a brief code example to get you going:

// Example: Parse BBCode with Links filter

  // We need to include the BB Code Parser class
  require_once 'HTML/BBCodeParser.php';

  // We specify that we want to use the Links filter
  $options['filters'] = array('Links');
  // Other filters include 'Email', 'Extended', 'Images' and 'Lists'

  // Initiate class
  $parser = new HTML_BBCodeParser($options);

  // Specify the text to be parsed
  $parser-&gt;setText('text with an [url]http://pear.php.net[/url]');

  // Parse and echo out the return value
  $parser-&gt;parse();
  echo $parser-&gt;getParsed();

Actual result:
--------------
&quot;No end-user documentation is available for this package.&quot;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Documentation Problem
Reported by motin
2007-10-18T12:41:30+00:00
PHP: 5.2.1 OS: All Package Version: 1.2.2

Description:
------------
To make this great class available for more users, why not put some short code examples as end-user documentation. 

At first I had to look in the file system just to be able to get the require_once right!

Then, I followed some examples in the main class phpDoc which  got me half-way, but I had to hunt down how to get BBCodeParser to parse [url][/url] by looking at the source code. 

So the bug here is: I click on Documentation...

Test script:
---------------
Click on Documentation on the Package summary page...

Expected result:
----------------
[The information from the phpDoc of the main class]

Here is a brief code example to get you going:

// Example: Parse BBCode with Links filter

  // We need to include the BB Code Parser class
  require_once 'HTML/BBCodeParser.php';

  // We specify that we want to use the Links filter
  $options['filters'] = array('Links');
  // Other filters include 'Email', 'Extended', 'Images' and 'Lists'

  // Initiate class
  $parser = new HTML_BBCodeParser($options);

  // Specify the text to be parsed
  $parser-&gt;setText('text with an [url]http://pear.php.net[/url]');

  // Parse and echo out the return value
  $parser-&gt;parse();
  echo $parser-&gt;getParsed();

Actual result:
--------------
&quot;No end-user documentation is available for this package.&quot;</pre>]]></description>
      <dc:date>2007-10-18T12:44:27+00:00</dc:date>
      <dc:creator>motin &amp;#x61;&amp;#116; demomusic &amp;#x64;&amp;#111;&amp;#x74; nu</dc:creator>
      <dc:subject>HTML_BBCodeParser Documentation Problem</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12215">
      <title>HTML_BBCodeParser: Bug 12215 [Open] [url] doesn't work like expected</title>
      <link>http://pear.php.net/bugs/12215</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by zedel
2007-10-10T04:56:38+00:00
PHP: Irrelevant OS:  Package Version: 1.2.2

Description:
------------
HTML_BBCodeParser replaces everything which looks like a url with a link, not only in [url] tags. And there is no easy way to disable smarterPPLinkExpand (please, no 'but i know better what you want' - systems without a way to disable them)



Test script:
---------------
$parser = new HTML_BBCodeParser(array('filters' =&gt; 'Basic,Email,Extended,Images,Links'));
$parser-&gt;qparse(&quot;This is an example for www.php.net: &lt;link&gt;http://www.php.net&lt;/link&gt; and here is the real link: [url=http://www.php.net/]PHP[/url]&quot;);


Expected result:
----------------
his is an example for www.php.net: &lt;link&gt;http://www.php.net&lt;/link&gt; and here is the real link: &lt;a href=&quot;http://www.php.net&quot;&gt;PHP&lt;/a&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by zedel
2007-10-10T04:56:38+00:00
PHP: Irrelevant OS:  Package Version: 1.2.2

Description:
------------
HTML_BBCodeParser replaces everything which looks like a url with a link, not only in [url] tags. And there is no easy way to disable smarterPPLinkExpand (please, no 'but i know better what you want' - systems without a way to disable them)



Test script:
---------------
$parser = new HTML_BBCodeParser(array('filters' =&gt; 'Basic,Email,Extended,Images,Links'));
$parser-&gt;qparse(&quot;This is an example for www.php.net: &lt;link&gt;http://www.php.net&lt;/link&gt; and here is the real link: [url=http://www.php.net/]PHP[/url]&quot;);


Expected result:
----------------
his is an example for www.php.net: &lt;link&gt;http://www.php.net&lt;/link&gt; and here is the real link: &lt;a href=&quot;http://www.php.net&quot;&gt;PHP&lt;/a&gt;</pre>]]></description>
      <dc:date>2007-10-10T04:56:38+00:00</dc:date>
      <dc:creator>zedel &amp;#x61;&amp;#116; isl &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12187">
      <title>HTML_BBCodeParser: Bug 12187 [Open] Quote recognition in parser is broken</title>
      <link>http://pear.php.net/bugs/12187</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by avoid
2007-10-05T05:01:59+00:00
PHP: 5.2.3 OS: Linux Package Version: 1.2.2

Description:
------------
The BBcode parser doesn't handle quotes (&quot;) around
attribute values correctly. If the attribute value contains
a space, things go awry.

I applied a simple patch to BBCodeParser.php, which fixes 
the problem. Can somebody review this patch and, if found
okay, apply it to the source?

Line 459: removed a \s from the regexp:

  Old: $regex = &quot;![\s$oe]([a-z0-9]+)=(\&quot;[^\s$ce]+\&quot;|[^\s$ce]&quot;;
  New: $regex = &quot;![\s$oe]([a-z0-9]+)=(\&quot;[^$ce]+\&quot;|[^\s$ce]&quot;;

Line 463: Added the U pattern modifier, to make the regexp ungreedy.

  Old: $regex .= &quot;+)(?=[\s$ce])!i&quot;;
  New: $regex .= &quot;+)(?=[\s$ce])!iU&quot;;

Test script:
---------------
This is a line of text.
[url=&quot;http://www.example.com&quot; title=&quot;this is a title&quot;]

In this case, when trying to use the 'title' attribute,
it's value will be &quot;&quot;test&quot; (with a leading quote).


Expected result:
----------------
Of course, the 'title' attribute should contain the value
&quot;this is a test&quot; (without the quotes).</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by avoid
2007-10-05T05:01:59+00:00
PHP: 5.2.3 OS: Linux Package Version: 1.2.2

Description:
------------
The BBcode parser doesn't handle quotes (&quot;) around
attribute values correctly. If the attribute value contains
a space, things go awry.

I applied a simple patch to BBCodeParser.php, which fixes 
the problem. Can somebody review this patch and, if found
okay, apply it to the source?

Line 459: removed a \s from the regexp:

  Old: $regex = &quot;![\s$oe]([a-z0-9]+)=(\&quot;[^\s$ce]+\&quot;|[^\s$ce]&quot;;
  New: $regex = &quot;![\s$oe]([a-z0-9]+)=(\&quot;[^$ce]+\&quot;|[^\s$ce]&quot;;

Line 463: Added the U pattern modifier, to make the regexp ungreedy.

  Old: $regex .= &quot;+)(?=[\s$ce])!i&quot;;
  New: $regex .= &quot;+)(?=[\s$ce])!iU&quot;;

Test script:
---------------
This is a line of text.
[url=&quot;http://www.example.com&quot; title=&quot;this is a title&quot;]

In this case, when trying to use the 'title' attribute,
it's value will be &quot;&quot;test&quot; (with a leading quote).


Expected result:
----------------
Of course, the 'title' attribute should contain the value
&quot;this is a test&quot; (without the quotes).</pre>]]></description>
      <dc:date>2007-10-05T05:01:59+00:00</dc:date>
      <dc:creator>arjan &amp;#x61;&amp;#116; webpower &amp;#x64;&amp;#111;&amp;#x74; nl</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12002">
      <title>HTML_BBCodeParser: Feature/Change Request 12002 [Open] Target set in [url] doesn't work</title>
      <link>http://pear.php.net/bugs/12002</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by simonwestwood
2007-09-07T05:46:33+00:00
PHP: Irrelevant OS: N/A Package Version: 1.2.2

Description:
------------
The target parameter is ignored by the links filter in the default install of the package.  This can be resolved by adding the following entry to the attributes array in filter/links.php

't'   =&gt; 'target=%2$s%1$s%2$s'

Without this change the examples file is inaccurate

Test script:
---------------
[url=http://www.server.org t=_blank]server[/url]

Expected result:
----------------
&lt;a href='http://www.server.org' target='_blank'&gt;server&lt;/a&gt;

Actual result:
--------------
&lt;a href='http://www.server.org'&gt;server&lt;/a&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by simonwestwood
2007-09-07T05:46:33+00:00
PHP: Irrelevant OS: N/A Package Version: 1.2.2

Description:
------------
The target parameter is ignored by the links filter in the default install of the package.  This can be resolved by adding the following entry to the attributes array in filter/links.php

't'   =&gt; 'target=%2$s%1$s%2$s'

Without this change the examples file is inaccurate

Test script:
---------------
[url=http://www.server.org t=_blank]server[/url]

Expected result:
----------------
&lt;a href='http://www.server.org' target='_blank'&gt;server&lt;/a&gt;

Actual result:
--------------
&lt;a href='http://www.server.org'&gt;server&lt;/a&gt;</pre>]]></description>
      <dc:date>2007-09-07T05:46:33+00:00</dc:date>
      <dc:creator>simon &amp;#x64;&amp;#111;&amp;#x74; westwood &amp;#x61;&amp;#116; timico &amp;#x64;&amp;#111;&amp;#x74; co &amp;#x64;&amp;#111;&amp;#x74; uk</dc:creator>
      <dc:subject>HTML_BBCodeParser Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11684">
      <title>HTML_BBCodeParser: Feature/Change Request 11684 [Open] Use of pecl extension if available</title>
      <link>http://pear.php.net/bugs/11684</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by xdecock
2007-07-25T04:24:20+00:00
PHP: Irrelevant OS: N/A Package Version: 

Description:
------------
I'm the author of: http://pecl.php.net/package/bbcode

And i think it should be possible for this package to map over the pecl extension (if functionality are missing, don't hesitate file a request on pecl bug system).

The extension is fully customizable, supports callbacks (not Object Oriented Callback for the moment unfortunately) so it can be a real speed boost for the parsing.

Don't hesitate to make suggestion, (the documentation has been put on phpdoc cvs and will be available soon on php.net)

I'll try to post a patch here if I have time.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by xdecock
2007-07-25T04:24:20+00:00
PHP: Irrelevant OS: N/A Package Version: 

Description:
------------
I'm the author of: http://pecl.php.net/package/bbcode

And i think it should be possible for this package to map over the pecl extension (if functionality are missing, don't hesitate file a request on pecl bug system).

The extension is fully customizable, supports callbacks (not Object Oriented Callback for the moment unfortunately) so it can be a real speed boost for the parsing.

Don't hesitate to make suggestion, (the documentation has been put on phpdoc cvs and will be available soon on php.net)

I'll try to post a patch here if I have time.</pre>]]></description>
      <dc:date>2007-07-25T04:24:20+00:00</dc:date>
      <dc:creator>void &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>HTML_BBCodeParser Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11576">
      <title>HTML_BBCodeParser: Bug 11576 [Open] Problems with http:// in [img]</title>
      <link>http://pear.php.net/bugs/11576</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by digitalmagnets
2007-07-10T04:32:38+00:00
PHP: 4.4.5 OS:  Package Version: 1.2.2

Description:
------------
This might be due to something in my setup. But since upgrading to 1.2.2 from 1.1, images in the format:

[img]http://pear.php.net/image.jpg[/img]

Are outputting as:

[img=&quot;&lt;a href='http://pear.php.net/image.jpg'&gt;http://pear.php.net/image.jpg&lt;/a&gt;&quot;]

Because the &lt;a href is being included, the images don't work. 

Can anyone else verify this behaviour?</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by digitalmagnets
2007-07-10T04:32:38+00:00
PHP: 4.4.5 OS:  Package Version: 1.2.2

Description:
------------
This might be due to something in my setup. But since upgrading to 1.2.2 from 1.1, images in the format:

[img]http://pear.php.net/image.jpg[/img]

Are outputting as:

[img=&quot;&lt;a href='http://pear.php.net/image.jpg'&gt;http://pear.php.net/image.jpg&lt;/a&gt;&quot;]

Because the &lt;a href is being included, the images don't work. 

Can anyone else verify this behaviour?</pre>]]></description>
      <dc:date>2007-07-10T04:32:38+00:00</dc:date>
      <dc:creator>digitalmagnets &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/7230">
      <title>HTML_BBCodeParser: Bug 7230 [Open] doesn't like base64...</title>
      <link>http://pear.php.net/bugs/7230</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by michael@...
2006-03-28T14:57:21+00:00
PHP: Irrelevant OS:  Package Version: 1.1

Description:
------------
1.
[img]data:text/html;base64,VGhpcyBpcyBhIHRlc3QK[/img]
-&gt;
Notice: Undefined index: in /home/michi/www/go-clone2/include/BBCodeParser.php on line 631

Notice: Undefined index: tag in /home/michi/www/go-clone2/include/BBCodeParser.php on line 1134

2.
[img]data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZt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jEiUeICCmoI6tHkCJjvDTJA4gRJk2K5JDRNUaM
G0CSKCnSw4ZLjjxp1MAxliFbo0iVLm36tGcNvlN32E6qmHFI03yd1n5r/nboQCA/fBg/3tZq
2aFAhAyZa7j40Rxhg/Lw4XBwkoqHe+xoujjkyBfkY9TQgd3IEiQ8RNKgQRLHEMpFdszQvFHr
x9NVl68+mtRrTnW0X29UVWVbYk7ZwNh7pn3l24HAMRfERcgZd5RywRHlnF1B/AAgdX1VxcMP
gXm2RBKGfegddVt9JNJ4Lrxgng4NGfEZDi9tFcMMOqTEBBGX9ZjfYvy9xZwPrAWYGGwE8hbV
WFdhBZ5sPUEplVL9+cfWhUq6tRyFzglx0VUiWlfiiRGpKBCI3xEII2YxvDAjDCb1EEQROe5Y
gww18FBEikHcgNkMRW5lmkJI/teaa0wNiOhshFFuiRSVpL34nqQRphZmcV5miORZQwnRpndI
nUmiiTStuaKbLl4Z45wuuADDDDfsgNKeMmy160w1hdaVSZfupyiXSgLoWpOQFjgpWUsKCGem
CEXFlIRlBefllxqKKlyblb45olWqosgmi29iGiudM+6Knp5F6LhrDYYCccQRQuzQp1cBAQA7[/img]
-&gt;Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/michi/www/go-clone2/include/BBCodeParser.php on line 1003</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Bug
Reported by michael@...
2006-03-28T14:57:21+00:00
PHP: Irrelevant OS:  Package Version: 1.1

Description:
------------
1.
[img]data:text/html;base64,VGhpcyBpcyBhIHRlc3QK[/img]
-&gt;
Notice: Undefined index: in /home/michi/www/go-clone2/include/BBCodeParser.php on line 631

Notice: Undefined index: tag in /home/michi/www/go-clone2/include/BBCodeParser.php on line 1134

2.
[img]data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAwAAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFzByTB10QgxOR0TqBQejhRNzOfkVJ+5Yi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UaM
G0CSKCnSw4ZLjjxp1MAxliFbo0iVLm36tGcNvlN32E6qmHFI03yd1n5r/nboQCA/fBg/3tZq
2aFAhAyZa7j40Rxhg/Lw4XBwkoqHe+xoujjkyBfkY9TQgd3IEiQ8RNKgQRLHEMpFdszQvFHr
x9NVl68+mtRrTnW0X29UVWVbYk7ZwNh7pn3l24HAMRfERcgZd5RywRHlnF1B/AAgdX1VxcMP
gXm2RBKGfegddVt9JNJ4Lrxgng4NGfEZDi9tFcMMOqTEBBGX9ZjfYvy9xZwPrAWYGGwE8hbV
WFdhBZ5sPUEplVL9+cfWhUq6tRyFzglx0VUiWlfiiRGpKBCI3xEII2YxvDAjDCb1EEQROe5Y
gww18FBEikHcgNkMRW5lmkJI/teaa0wNiOhshFFuiRSVpL34nqQRphZmcV5miORZQwnRpndI
nUmiiTStuaKbLl4Z45wuuADDDDfsgNKeMmy160w1hdaVSZfupyiXSgLoWpOQFjgpWUsKCGem
CEXFlIRlBefllxqKKlyblb45olWqosgmi29iGiudM+6Knp5F6LhrDYYCccQRQuzQp1cBAQA7[/img]
-&gt;Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/michi/www/go-clone2/include/BBCodeParser.php on line 1003</pre>]]></description>
      <dc:date>2006-03-28T14:57:21+00:00</dc:date>
      <dc:creator>michael &amp;#x61;&amp;#116; fritscher &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>HTML_BBCodeParser Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/4936">
      <title>HTML_BBCodeParser: Feature/Change Request 4936 [Open] Nested URLs in quotes not handled</title>
      <link>http://pear.php.net/bugs/4936</link>
      <content:encoded><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by devurandom@...
2005-07-28T09:00:08+00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
With original BBCode following is possible:

[quote=&quot;[url=http://somewhere.com]URL-Title[/url]&quot;]Quoted text[/quote]

It makes that I can click on the &quot;cite&quot; part of the quote.

You only parse the inner url part, so I have the &quot;[quote=&quot; left unparsed.

Test script:
---------------
[quote=&quot;[url=http://somewhere.com]URL-Title[/url]&quot;]Quoted text[/quote]

Expected result:
----------------
Create a quote with a clickable &quot;cite&quot; part.

Actual result:
--------------
You only parse the inner url part, so I have the &quot;[quote=&quot; left unparsed.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_BBCodeParser Feature/Change Request
Reported by devurandom@...
2005-07-28T09:00:08+00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
With original BBCode following is possible:

[quote=&quot;[url=http://somewhere.com]URL-Title[/url]&quot;]Quoted text[/quote]

It makes that I can click on the &quot;cite&quot; part of the quote.

You only parse the inner url part, so I have the &quot;[quote=&quot; left unparsed.

Test script:
---------------
[quote=&quot;[url=http://somewhere.com]URL-Title[/url]&quot;]Quoted text[/quote]

Expected result:
----------------
Create a quote with a clickable &quot;cite&quot; part.

Actual result:
--------------
You only parse the inner url part, so I have the &quot;[quote=&quot; left unparsed.</pre>]]></description>
      <dc:date>2005-10-21T10:42:54+00:00</dc:date>
      <dc:creator>devurandom &amp;#x61;&amp;#116; gmx &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>HTML_BBCodeParser Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
