Skip to content
Permalink
Browse files

Added missing sanitizing

  • Loading branch information...
thorsten committed Mar 22, 2017
1 parent 45a3847 commit a69f32175c28af1b34e5df83000f830e60f6bce9
Showing with 3 additions and 3 deletions.
  1. +3 −3 phpmyfaq/inc/PMF/Faq.php
@@ -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;
@@ -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;
@@ -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();

0 comments on commit a69f321

Please sign in to comment.
You can’t perform that action at this time.