Skip to content

Commit

Permalink
Bug techjoomla#105: XSS related bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-ttpl committed Sep 3, 2018
1 parent 4cc83e1 commit bf0dae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tjreports/site/models/reports.php
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,8 @@ public function getReportLink($reportToLink, $filters)
*/
public function getDefaultReport($pluginName)
{
$db = JFactory::getDBO();

JTable::addIncludePath(JPATH_ROOT . '/administrator/components/com_tjreports/tables');
$reportTable = JTable::getInstance('Tjreport', 'TjreportsTable', array('dbo', $db));
$reportTable->load(array('plugin' => $pluginName, 'default' => 1));
Expand Down

0 comments on commit bf0dae5

Please sign in to comment.