Skip to content
Permalink
Browse files Browse the repository at this point in the history
Added missing sanitizing
  • Loading branch information
thorsten committed Mar 22, 2017
1 parent 45a3847 commit a69f321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions phpmyfaq/inc/PMF/Faq.php
Expand Up @@ -2137,7 +2137,7 @@ public function getTopTenData($count = PMF_NUMBER_RECORDS_TOPTEN, $categoryId =
}

$data['visits'] = (int)$row->visits;
$data['question'] = $row->question;
$data['question'] = PMF_Filter::filterVar($row->question, FILTER_SANITIZE_STRING);
$data['date'] = $row->updated;
$data['last_visit'] = $row->last_visit;

Expand Down Expand Up @@ -2246,7 +2246,7 @@ public function getLatestData($count = PMF_NUMBER_RECORDS_LATEST, $language = nu
}

$data['date'] = $row->updated;
$data['question'] = $row->question;
$data['question'] = PMF_Filter::filterVar($row->question, FILTER_SANITIZE_STRING);
$data['answer'] = $row->content;
$data['visits'] = $row->visits;

Expand All @@ -2260,7 +2260,7 @@ public function getLatestData($count = PMF_NUMBER_RECORDS_LATEST, $language = nu
$row->lang
);
$oLink = new PMF_Link($url, $this->_config);
$oLink->itemTitle = $row->question;
$oLink->itemTitle = $title;
$oLink->tooltip = $title;
$data['url'] = $oLink->toString();

Expand Down

0 comments on commit a69f321

Please sign in to comment.