mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
xmlns:fh="http://purl.org/syndication/history/1.0">
|
||||
<channel>
|
||||
<generator>Gallery 3</generator>
|
||||
<title><?= p::clean($feed->title) ?></title>
|
||||
<title><?= SafeString::of($feed->title) ?></title>
|
||||
<link><?= $feed->uri ?></link>
|
||||
<description><?= p::clean($feed->description) ?></description>
|
||||
<description><?= SafeString::of($feed->description) ?></description>
|
||||
<language>en-us</language>
|
||||
<atom:link rel="self" href="<?= $feed->uri ?>" type="application/rss+xml" />
|
||||
<fh:complete/>
|
||||
@@ -22,14 +22,14 @@
|
||||
<lastBuildDate><?= $pub_date ?></lastBuildDate>
|
||||
<? foreach ($feed->children as $child): ?>
|
||||
<item>
|
||||
<title><?= p::purify($child->title) ?></title>
|
||||
<link><?= p::clean($child->item_uri) ?></link>
|
||||
<author><?= p::clean($child->author) ?></author>
|
||||
<title><?= SafeString::purify($child->title) ?></title>
|
||||
<link><?= SafeString::of($child->item_uri) ?></link>
|
||||
<author><?= SafeString::of($child->author) ?></author>
|
||||
<guid isPermaLink="true"><?= $child->item_uri ?></guid>
|
||||
<pubDate><?= $child->pub_date ?></pubDate>
|
||||
<content:encoded>
|
||||
<![CDATA[
|
||||
<p><?= nl2br(p::purify($child->text)) ?></p>
|
||||
<p><?= nl2br(SafeString::purify($child->text)) ?></p>
|
||||
<p>
|
||||
<img alt="" src="<?= $child->thumb_url ?>"
|
||||
height="<?= $child->thumb_height ?>" width="<?= $child->thumb_width ?>" />
|
||||
|
||||
Reference in New Issue
Block a user