mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-31 03:15:46 -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:
@@ -52,9 +52,9 @@ class gallery_rss_Core {
|
||||
->viewable()
|
||||
->descendants($limit, $offset, "photo");
|
||||
$feed->max_pages = ceil($item->viewable()->descendants_count("photo") / $limit);
|
||||
$feed->title = p::purify($item->title);
|
||||
$feed->title = SafeString::purify($item->title);
|
||||
$feed->link = url::abs_site("albums/{$item->id}");
|
||||
$feed->description = nl2br(p::purify($item->description));
|
||||
$feed->description = nl2br(SafeString::purify($item->description));
|
||||
|
||||
return $feed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user