Skip to content
Snippets Groups Projects
Commit dfdb5b42 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #2681 remove protect_string_db

parent 26bd65d6
No related branches found
No related tags found
No related merge requests found
...@@ -227,9 +227,7 @@ class Maarch_Core_Class_StatusControler ...@@ -227,9 +227,7 @@ class Maarch_Core_Class_StatusControler
{ {
$error = ""; $error = "";
$f = new functions(); $f = new functions();
$status->id = $f->protect_string_db( $status->id = $f->wash($status->id, 'no', _THE_ID . ' ', 'yes', 0, 10);
$f->wash($status->id, 'no', _THE_ID . ' ', 'yes', 0, 10)
);
if ($mode == 'add') { if ($mode == 'add') {
if (self::statusExists($status->id)) { if (self::statusExists($status->id)) {
...@@ -237,12 +235,10 @@ class Maarch_Core_Class_StatusControler ...@@ -237,12 +235,10 @@ class Maarch_Core_Class_StatusControler
} }
} }
$status->label_status = $f->protect_string_db( $status->label_status = $f->wash($status->label_status, 'no', _DESC, 'yes', 0, 50);
$f->wash($status->label_status, 'no', _DESC, 'yes', 0, 50)
); $status->is_system = $f->wash($status->is_system, 'no', _IS_SYSTEM);
$status->is_system = $f->protect_string_db(
$f->wash($status->is_system, 'no', _IS_SYSTEM)
);
$status->img_filename = $status->img_filename; $status->img_filename = $status->img_filename;
$status->maarch_module = 'apps'; $status->maarch_module = 'apps';
......
...@@ -465,22 +465,12 @@ class usergroups_controler extends ObjectControler implements ObjectControlerIF ...@@ -465,22 +465,12 @@ class usergroups_controler extends ObjectControler implements ObjectControlerIF
$error = ""; $error = "";
$func = new functions(); $func = new functions();
$group->group_id = $func->protect_string_db( $group->group_id = $func->wash($group->group_id, 'no', _THE_GROUP, 'yes', 0, 32);
$func->wash($group->group_id, 'no', _THE_GROUP, 'yes', 0, 32)
);
if (isset($group->group_desc) && !empty($group->group_desc)) { if (isset($group->group_desc) && !empty($group->group_desc)) {
$group->group_desc = $func->protect_string_db( $group->group_desc = $func->wash($group->group_desc, 'no', _GROUP_DESC, 'yes', 0, 255);
$func->wash($group->group_desc, 'no', _GROUP_DESC, 'yes', 0, 255)
);
} }
/*if (count($security) < 1 && count($services) < 1) {
$func->add_error(
_THE_GROUP . ' ' . _NO_SECURITY_AND_NO_SERVICES, ''
);
}*/
if ($mode == "add" && $this->groupExists($group->group_id)) { if ($mode == "add" && $this->groupExists($group->group_id)) {
$func->add_error( $func->add_error(
$group->group_id . ' ' . _ALREADY_EXISTS . "<br />" $group->group_id . ' ' . _ALREADY_EXISTS . "<br />"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment