Skip to content
Snippets Groups Projects
Commit 5b4b13f3 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #102 from greezybacon/hotfix/ticket-validation-filter


Fix regression in filter processing

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents bb0d84c2 38287e6b
Branches
Tags
No related merge requests found
......@@ -258,6 +258,7 @@ class Filter {
return false;
foreach ($this->getRules() as $rule) {
if (!isset($how[$rule['h']])) continue;
list($func, $pos, $neg) = $how[$rule['h']];
# TODO: convert $what and $rule['v'] to mb_strtoupper and do
# case-sensitive, binary-safe comparisons. Would be really
......
......@@ -1891,7 +1891,8 @@ class Ticket {
// fields into local scope for filtering and banning purposes
$user_form = UserForm::getInstance();
$user_info = $user_form->getClean();
$vars += $user_info;
if ($user_form->isValid())
$vars += $user_info;
//Check for 403
if ($vars['email'] && Validator::is_email($vars['email'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment