mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 01:34:09 -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:
@@ -8,11 +8,11 @@
|
||||
</li>
|
||||
<? else: ?>
|
||||
<li class="first">
|
||||
<?= t('Logged in as %name', array('name' => SafeString::of(
|
||||
<?= t('Logged in as %name', array('name' => SafeString::of_safe_html(
|
||||
'<a href="' . url::site("form/edit/users/{$user->id}") .
|
||||
'" title="' . t("Edit Your Profile") .
|
||||
'" title="' . t("Edit Your Profile")->for_html_attr() .
|
||||
'" id="gUserProfileLink" class="gDialogLink">' .
|
||||
p::clean($user->display_name()) . '</a>')->mark_html_safe())) ?>
|
||||
SafeString::of($user->display_name()) . '</a>'))) ?>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?= url::site("logout?csrf=$csrf&continue=" . urlencode(url::current(true))) ?>"
|
||||
|
||||
Reference in New Issue
Block a user