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:
@@ -38,7 +38,7 @@ class Admin_Server_Add_Controller extends Admin_Controller {
|
||||
$path = $form->add_path->path->value;
|
||||
$paths[$path] = 1;
|
||||
module::set_var("server_add", "authorized_paths", serialize($paths));
|
||||
message::success(t("Added path %path", array("path" => p::clean($path))));
|
||||
message::success(t("Added path %path", array("path" => $path)));
|
||||
server_add::check_config($paths);
|
||||
url::redirect("admin/server_add");
|
||||
} else {
|
||||
@@ -60,7 +60,7 @@ class Admin_Server_Add_Controller extends Admin_Controller {
|
||||
$paths = unserialize(module::get_var("server_add", "authorized_paths"));
|
||||
if (isset($paths[$path])) {
|
||||
unset($paths[$path]);
|
||||
message::success(t("Removed path %path", array("path" => p::clean($path))));
|
||||
message::success(t("Removed path %path", array("path" => $path)));
|
||||
module::set_var("server_add", "authorized_paths", serialize($paths));
|
||||
server_add::check_config($paths);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user