Skip to content

Commit

Permalink
Contact form banned words rule not working #4111 [2.5.x]
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Davenport committed Aug 16, 2014
1 parent 1c5a83a commit 7087954
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/com_contact/models/rules/contactemail.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function test(& $element, $value, $group = null, & $input = null, & $form
$banned = $params->get('banned_email');

foreach(explode(';', $banned) as $item){
if ($item != '' && JString::stristr($item, $value) !== false)
if ($item != '' && JString::stristr($value, $item) !== false)
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function test(& $element, $value, $group = null, & $input = null, & $form
$banned = $params->get('banned_text');

foreach(explode(';', $banned) as $item){
if ($item != '' && JString::stristr($item, $value) !== false)
if ($item != '' && JString::stristr($value, $item) !== false)
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function test(& $element, $value, $group = null, & $input = null, & $form
$banned = $params->get('banned_subject');

foreach(explode(';', $banned) as $item){
if ($item != '' && JString::stristr($item, $value) !== false)
if ($item != '' && JString::stristr($value, $item) !== false)
return false;
}

Expand Down

0 comments on commit 7087954

Please sign in to comment.