Vergleich inc/class_feedgeneration.php - 1.6.2 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: class_feedgeneration.php 5040 2010-06-18 01:30:02Z RyanGordon $

 * $Id$

 */

class FeedGenerator

 */

class FeedGenerator

Zeile 163Zeile 163
						$this->xml .= "\t\t\t<dc:creator><![CDATA[".$this->sanitize_content($item['author'])."]]></dc:creator>\n";
}
$this->xml .= "\t\t\t<guid isPermaLink=\"false\">".$item['link']."</guid>\n";

						$this->xml .= "\t\t\t<dc:creator><![CDATA[".$this->sanitize_content($item['author'])."]]></dc:creator>\n";
}
$this->xml .= "\t\t\t<guid isPermaLink=\"false\">".$item['link']."</guid>\n";

					$this->xml .= "\t\t\t<description><![CDATA[".$this->sanitize_content($item['description'])."]]></description>\n";

					$this->xml .= "\t\t\t<description><![CDATA[".$item['description']."]]></description>\n";

					$this->xml .= "\t\t\t<content:encoded><![CDATA[".$item['description']."]]></content:encoded>\n";
$this->xml .= "\t\t</item>\n";
break;

					$this->xml .= "\t\t\t<content:encoded><![CDATA[".$item['description']."]]></content:encoded>\n";
$this->xml .= "\t\t</item>\n";
break;

Zeile 190Zeile 190
	 */
function sanitize_content($content)
{

	 */
function sanitize_content($content)
{

		$content = preg_replace("#&([^\#])(?![a-z1-4]{1,10};)#i", "&#x26;$1", $content);

		$content = preg_replace("#&[^\s]([^\#])(?![a-z1-4]{1,10});#i", "&#x26;$1", $content);

		$content = str_replace("]]>", "]]]]><![CDATA[>", $content);

		$content = str_replace("]]>", "]]]]><![CDATA[>", $content);

		



		return $content;
}


		return $content;
}