From bf0dae5d36136eb7c47c166bd304c2c3f663839e Mon Sep 17 00:00:00 2001 From: Sagar Gurnani Date: Mon, 3 Sep 2018 16:53:50 +0530 Subject: [PATCH] Bug #105: XSS related bug fixes --- tjreports/site/models/reports.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tjreports/site/models/reports.php b/tjreports/site/models/reports.php index 58bcfd4..6a3783d 100755 --- a/tjreports/site/models/reports.php +++ b/tjreports/site/models/reports.php @@ -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));