Vergleich inc/class_feedgeneration.php - 1.6.3 - 1.6.10

  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 5380 2011-02-21 12:04:43Z Tomm $

 * $Id: class_feedgeneration.php 5828 2012-05-08 16:06:16Z Tomm $

 */

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);

return $content;

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

return $content;