Skip to content

Commit

Permalink
add missing input filter
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 committed May 10, 2017
1 parent 6fb7c53 commit b1c572b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/com_tags/controllers/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public function searchAjax()

// Receive request data
$filters = array(
'like' => trim($app->input->get('like', null)),
'title' => trim($app->input->get('title', null)),
'flanguage' => $app->input->get('flanguage', null),
'published' => $app->input->get('published', 1, 'integer'),
'parent_id' => $app->input->get('parent_id', null)
'like' => trim($app->input->get('like', null, 'string')),
'title' => trim($app->input->get('title', null, 'string')),
'flanguage' => $app->input->get('flanguage', null, 'word'),
'published' => $app->input->get('published', 1, 'int'),
'parent_id' => $app->input->get('parent_id', null, 'int'),
);

if ($results = JHelperTags::searchTags($filters))
Expand Down

0 comments on commit b1c572b

Please sign in to comment.