mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19: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:
@@ -23,8 +23,8 @@ class Logout_Controller extends Controller {
|
||||
|
||||
$user = user::active();
|
||||
user::logout();
|
||||
log::info("user", t("User %name logged out", array("name" => p::clean($user->name))),
|
||||
html::anchor("user/$user->id", p::clean($user->name)));
|
||||
log::info("user", t("User %name logged out", array("name" => $user->name)),
|
||||
html::anchor("user/$user->id", SafeString::of($user->name)));
|
||||
if ($continue_url = $this->input->get("continue")) {
|
||||
$item = url::get_item_from_uri($continue_url);
|
||||
if (access::can("view", $item)) {
|
||||
|
||||
Reference in New Issue
Block a user