diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 39bbff913..f4fb76bcf 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -1488,7 +1488,7 @@ class e_admin_dispatcher $tmp = explode('/', trim($key, '/'), 3); // sync with mode/route access - if(!$this->checkModeAccess($tmp[0]) || !$this->checkRouteAccess($tmp[0].'/'.$tmp[1])) + if(!$this->checkModeAccess($tmp[0]) || !$this->checkRouteAccess($tmp[0].'/'.varset($tmp[1]))) { continue; } diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 9268cd59b..ffedef130 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -4181,6 +4181,11 @@ TMPL; echo "

User-input ≫ toDb(\$text, true, false, 'no_html')

"; print_a($dbText2); + echo "
"; + $dbText3 = $tp->toDB($text, false, false, 'pReFs'); + echo "

User-input ≫ toDb(\$text, false, false, 'pReFs')

"; + print_a($dbText3); + // toClean $filter3 = $tp->filter($text, 'wds'); echo "

User-input ≫ filter(\$text, 'wds')

"; diff --git a/e107_handlers/model_class.php b/e107_handlers/model_class.php index 375709243..7f03ab440 100644 --- a/e107_handlers/model_class.php +++ b/e107_handlers/model_class.php @@ -2657,6 +2657,10 @@ class e_front_model extends e_model return $tp->toDB($value); break; + case 'code': + return $tp->toDB($value, false, false, 'pReFs'); + break; + case 'float': return $this->toNumber($value); break;