mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 09:19:18 -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>gallery3</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,25 +22,25 @@
|
||||
<lastBuildDate><?= $pub_date ?></lastBuildDate>
|
||||
<? foreach ($feed->children as $child): ?>
|
||||
<item>
|
||||
<title><?= p::clean($child->title) ?></title>
|
||||
<title><?= SafeString::of($child->title) ?></title>
|
||||
<link><?= url::abs_site("{$child->type}s/{$child->id}") ?></link>
|
||||
<guid isPermaLink="true"><?= url::abs_site("{$child->type}s/{$child->id}") ?></guid>
|
||||
<pubDate><?= date("D, d M Y H:i:s T", $child->created); ?></pubDate>
|
||||
<content:encoded>
|
||||
<![CDATA[
|
||||
<span><?= p::clean($child->description) ?></span>
|
||||
<span><?= SafeString::of($child->description) ?></span>
|
||||
<p>
|
||||
<? if ($child->type == "photo" || $child->type == "album"): ?>
|
||||
<img alt="" src="<?= $child->resize_url(true) ?>"
|
||||
title="<?= p::clean($child->title) ?>"
|
||||
title="<?= SafeString::of($child->title) ?>"
|
||||
height="<?= $child->resize_height ?>" width="<?= $child->resize_width ?>" /><br />
|
||||
<? else: ?>
|
||||
<a href="<?= url::abs_site("{$child->type}s/{$child->id}") ?>">
|
||||
<img alt="" src="<?= $child->thumb_url(true) ?>"
|
||||
title="<?= p::clean($child->title) ?>"
|
||||
title="<?= SafeString::of($child->title) ?>"
|
||||
height="<?= $child->thumb_height ?>" width="<?= $child->thumb_width ?>" /></a><br />
|
||||
<? endif ?>
|
||||
<?= p::clean($child->description) ?>
|
||||
<?= SafeString::of($child->description) ?>
|
||||
</p>
|
||||
]]>
|
||||
</content:encoded>
|
||||
|
||||
Reference in New Issue
Block a user