<?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_Safe</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/21059" />
      <rdf:li rdf:resource="http://pear.php.net/bug/20219" />
      <rdf:li rdf:resource="http://pear.php.net/bug/20195" />
      <rdf:li rdf:resource="http://pear.php.net/bug/18027" />
      <rdf:li rdf:resource="http://pear.php.net/bug/6900" />

     </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/21059">
      <title>HTML_Safe: Feature/Change Request 21059 [Open] new HTML5 Block-level elements patch</title>
      <link>http://pear.php.net/bugs/21059</link>
      <content:encoded><![CDATA[<pre>HTML_Safe Feature/Change Request
Reported by wackowiki
2016-04-29T12:24:13+00:00
PHP: 5.6.10 OS:  Package Version: 0.10.1

Description:
------------
added new HTML5 Block-level elements

diff --git a/wacko/lib/safehtml/safehtml.php b/wacko/lib/safehtml/safehtml.php
--- a/wacko/lib/safehtml/safehtml.php
+++ b/wacko/lib/safehtml/safehtml.php
@@ -222,11 +222,13 @@
      * @var array
      */
     public $closeParagraph = array(
-        'address', 'blockquote', 'center', 'dd',      'dir',       'div',
-        'dl',      'dt',         'h1',     'h2',      'h3',        'h4',
-        'h5',      'h6',         'hr',     'isindex', 'listing',   'marquee',
-        'menu',    'multicol',   'ol',     'p',       'plaintext', 'pre',
-        'table',   'ul',         'xmp',
+        'address', 'article',    'aside',  'audio',    'blockquote', 'canvas',
+        'center',  'dd',         'dir',    'div',      'dl',         'dt',
+        'figure',  'figcaption', 'footer', 'h1',       'h2',         'h3',
+        'h4',      'h5',         'h6',     'header',   'hr',         'isindex',
+        'listing', 'marquee',    'menu',   'multicol', 'ol',         'output',
+        'p',       'plaintext',  'pre',    'section',  'table',      'ul',
+        'video',   'xmp',
     );
 
     /**</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Safe Feature/Change Request
Reported by wackowiki
2016-04-29T12:24:13+00:00
PHP: 5.6.10 OS:  Package Version: 0.10.1

Description:
------------
added new HTML5 Block-level elements

diff --git a/wacko/lib/safehtml/safehtml.php b/wacko/lib/safehtml/safehtml.php
--- a/wacko/lib/safehtml/safehtml.php
+++ b/wacko/lib/safehtml/safehtml.php
@@ -222,11 +222,13 @@
      * @var array
      */
     public $closeParagraph = array(
-        'address', 'blockquote', 'center', 'dd',      'dir',       'div',
-        'dl',      'dt',         'h1',     'h2',      'h3',        'h4',
-        'h5',      'h6',         'hr',     'isindex', 'listing',   'marquee',
-        'menu',    'multicol',   'ol',     'p',       'plaintext', 'pre',
-        'table',   'ul',         'xmp',
+        'address', 'article',    'aside',  'audio',    'blockquote', 'canvas',
+        'center',  'dd',         'dir',    'div',      'dl',         'dt',
+        'figure',  'figcaption', 'footer', 'h1',       'h2',         'h3',
+        'h4',      'h5',         'h6',     'header',   'hr',         'isindex',
+        'listing', 'marquee',    'menu',   'multicol', 'ol',         'output',
+        'p',       'plaintext',  'pre',    'section',  'table',      'ul',
+        'video',   'xmp',
     );
 
     /**</pre>]]></description>
      <dc:date>2016-04-29T12:24:13+00:00</dc:date>
      <dc:creator>webmaster &amp;#x61;&amp;#116; wackowiki &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>HTML_Safe Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/20219">
      <title>HTML_Safe: Bug 20219 [Analyzed] Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_cal</title>
      <link>http://pear.php.net/bugs/20219</link>
      <content:encoded><![CDATA[<pre>HTML_Safe Bug
Reported by wackowiki
2014-03-15T18:45:53+00:00
PHP: 5.5.8 OS:  Package Version: 

Description:
------------
http://www.php.net/manual/en/migration55.deprecated.php
Replace preg_replace() e modifier with preg_replace_callback


diff --git a/lib/safehtml/safehtml.php b/lib/safehtml/safehtml.php
--- a/lib/safehtml/safehtml.php
+++ b/lib/safehtml/safehtml.php
@@ -350,10 +350,10 @@
                     }
                 }
 
-                $tempval = preg_replace('/&amp;#(\d+);?/me', &quot;chr('\\1')&quot;, $value); //&quot;'
-                $tempval = preg_replace(
-                    '/&amp;#x([0-9a-f]+);?/mei',
-                    &quot;chr(hexdec('\\1'))&quot;,
+                $tempval = preg_replace_callback('/&amp;#(\d+);?/m', function ($matches) { return chr($matches[1]); }, $value); //&quot;'
+                $tempval = preg_replace_callback(
+                	'/&amp;#x([0-9a-f]+);?/mi',
+                	function ($matches) { return chr(hexdec($matches[1])); },
                     $tempval
                 );</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Safe Bug
Reported by wackowiki
2014-03-15T18:45:53+00:00
PHP: 5.5.8 OS:  Package Version: 

Description:
------------
http://www.php.net/manual/en/migration55.deprecated.php
Replace preg_replace() e modifier with preg_replace_callback


diff --git a/lib/safehtml/safehtml.php b/lib/safehtml/safehtml.php
--- a/lib/safehtml/safehtml.php
+++ b/lib/safehtml/safehtml.php
@@ -350,10 +350,10 @@
                     }
                 }
 
-                $tempval = preg_replace('/&amp;#(\d+);?/me', &quot;chr('\\1')&quot;, $value); //&quot;'
-                $tempval = preg_replace(
-                    '/&amp;#x([0-9a-f]+);?/mei',
-                    &quot;chr(hexdec('\\1'))&quot;,
+                $tempval = preg_replace_callback('/&amp;#(\d+);?/m', function ($matches) { return chr($matches[1]); }, $value); //&quot;'
+                $tempval = preg_replace_callback(
+                	'/&amp;#x([0-9a-f]+);?/mi',
+                	function ($matches) { return chr(hexdec($matches[1])); },
                     $tempval
                 );</pre>]]></description>
      <dc:date>2014-03-22T13:33:39+00:00</dc:date>
      <dc:creator>webmaster &amp;#x61;&amp;#116; wackowiki &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>HTML_Safe Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/20195">
      <title>HTML_Safe: Bug 20195 [Verified] Package fails its test suite</title>
      <link>http://pear.php.net/bugs/20195</link>
      <content:encoded><![CDATA[<pre>HTML_Safe Bug
Reported by taffit
2014-02-10T01:18:46+00:00
PHP: 5.5.9 OS: Debian GNU/Linux Package Version: 0.10.1

Description:
------------
Hi,

The testHTML_Safe::testSpecialChars test introduced in 1.10.0 fails with the current 0.10.1 version:

$ phpunit tests/testHTML_Safe.php
PHPUnit 3.7.28 by Sebastian Bergmann.

.F

Time: 24 ms, Memory: 2.50Mb

There was 1 failure:

1) testHTML_Safe::testSpecialChars
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-a+b-c
+ac

â¦/php-html-safe/HTML_Safe-0.10.1/tests/testHTML_Safe.php:26

FAILURES!
Tests: 2, Assertions: 2, Failures: 1.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Safe Bug
Reported by taffit
2014-02-10T01:18:46+00:00
PHP: 5.5.9 OS: Debian GNU/Linux Package Version: 0.10.1

Description:
------------
Hi,

The testHTML_Safe::testSpecialChars test introduced in 1.10.0 fails with the current 0.10.1 version:

$ phpunit tests/testHTML_Safe.php
PHPUnit 3.7.28 by Sebastian Bergmann.

.F

Time: 24 ms, Memory: 2.50Mb

There was 1 failure:

1) testHTML_Safe::testSpecialChars
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-a+b-c
+ac

â¦/php-html-safe/HTML_Safe-0.10.1/tests/testHTML_Safe.php:26

FAILURES!
Tests: 2, Assertions: 2, Failures: 1.</pre>]]></description>
      <dc:date>2014-03-22T13:35:51+00:00</dc:date>
      <dc:creator>david &amp;#x61;&amp;#116; tilapin &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>HTML_Safe Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/18027">
      <title>HTML_Safe: Feature/Change Request 18027 [Assigned] script is vulnerable to XSS via use of svg/animate tags</title>
      <link>http://pear.php.net/bugs/18027</link>
      <content:encoded><![CDATA[<pre>HTML_Safe Feature/Change Request
Reported by cbaxter
2010-11-05T22:56:11+00:00
PHP: Irrelevant OS:  Package Version: 0.10.1

Description:
------------
The script is open to XSS attacks when done using the 
svg/animate tags as not included in deleteTags array.

Test script:
---------------
&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;
&lt;?php

 $doc = '&quot;&gt;&lt;svg&gt;&lt;animate attributeName=onunload to=alert(document.location) /&gt;&lt;/svg&gt;&lt;';

require_once('HTML/Safe.php');
 $parser = new HTML_Safe;

 $parser-&gt;clear();
 $result = $parser-&gt;parse($doc);

 print &quot;&lt;br&gt; $result&quot;;
?&gt;&lt;/body&gt;&lt;/html&gt;

Expected result:
----------------
&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;

&lt;br&gt; &quot;&gt;&lt;/body&gt;&lt;/html&gt;


Actual result:
--------------
&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;

&lt;br&gt; &quot;&gt;&lt;svg&gt;&lt;animate attributename=&quot;onunload&quot; 
to=&quot;alert(document.location)&quot;&gt;&lt;/animate&gt;&lt;/svg&gt;&lt;/body&gt;
&lt;/html&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Safe Feature/Change Request
Reported by cbaxter
2010-11-05T22:56:11+00:00
PHP: Irrelevant OS:  Package Version: 0.10.1

Description:
------------
The script is open to XSS attacks when done using the 
svg/animate tags as not included in deleteTags array.

Test script:
---------------
&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;
&lt;?php

 $doc = '&quot;&gt;&lt;svg&gt;&lt;animate attributeName=onunload to=alert(document.location) /&gt;&lt;/svg&gt;&lt;';

require_once('HTML/Safe.php');
 $parser = new HTML_Safe;

 $parser-&gt;clear();
 $result = $parser-&gt;parse($doc);

 print &quot;&lt;br&gt; $result&quot;;
?&gt;&lt;/body&gt;&lt;/html&gt;

Expected result:
----------------
&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;

&lt;br&gt; &quot;&gt;&lt;/body&gt;&lt;/html&gt;


Actual result:
--------------
&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;

&lt;br&gt; &quot;&gt;&lt;svg&gt;&lt;animate attributename=&quot;onunload&quot; 
to=&quot;alert(document.location)&quot;&gt;&lt;/animate&gt;&lt;/svg&gt;&lt;/body&gt;
&lt;/html&gt;</pre>]]></description>
      <dc:date>2010-11-05T23:28:42+00:00</dc:date>
      <dc:creator>cbaxter &amp;#x61;&amp;#116; tnsi &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_Safe Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/6900">
      <title>HTML_Safe: Bug 6900 [Analyzed] HTML_Safe destroys formatting by moving end tags in the wrong places</title>
      <link>http://pear.php.net/bugs/6900</link>
      <content:encoded><![CDATA[<pre>HTML_Safe Bug
Reported by thomas@...
2006-02-23T08:29:07+00:00
PHP: 5.1.2 OS: Fedora Core 3 Package Version: 0.9.9beta

Description:
------------
Hi.

We have started using HTML_Safe in our framework and notices some bugs:

&lt;ol&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;

Which is valid code - is changed to: 

&lt;ol&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;
&lt;li&gt;
&lt;/li&gt;&lt;/li&gt;
&lt;/ol&gt;

Which does not look good.

The same for font tags around text 

&lt;font&gt;
Text1
&lt;/font
Text2

Is changed to

&lt;font&gt;
Text1
Text2
&lt;/font

This destroys the layout, in fact and is critical.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_Safe Bug
Reported by thomas@...
2006-02-23T08:29:07+00:00
PHP: 5.1.2 OS: Fedora Core 3 Package Version: 0.9.9beta

Description:
------------
Hi.

We have started using HTML_Safe in our framework and notices some bugs:

&lt;ol&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;

Which is valid code - is changed to: 

&lt;ol&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;
&lt;li&gt;
&lt;/li&gt;&lt;/li&gt;
&lt;/ol&gt;

Which does not look good.

The same for font tags around text 

&lt;font&gt;
Text1
&lt;/font
Text2

Is changed to

&lt;font&gt;
Text1
Text2
&lt;/font

This destroys the layout, in fact and is critical.</pre>]]></description>
      <dc:date>2011-02-03T20:46:21+00:00</dc:date>
      <dc:creator>thomas &amp;#x61;&amp;#116; ekdahl &amp;#x64;&amp;#111;&amp;#x74; no</dc:creator>
      <dc:subject>HTML_Safe Bug</dc:subject>
    </item>
</rdf:RDF>
