diff --git a/tjreports/administrator/views/tjreports/tmpl/default.php b/tjreports/administrator/views/tjreports/tmpl/default.php index 9965ae8..03a3c46 100644 --- a/tjreports/administrator/views/tjreports/tmpl/default.php +++ b/tjreports/administrator/views/tjreports/tmpl/default.php @@ -103,13 +103,13 @@ { ?> - title; ?> + title, ENT_COMPAT, 'UTF-8'); ?> title; + echo htmlspecialchars($row->title, ENT_COMPAT, 'UTF-8'); } ?> 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)); diff --git a/tjreports/site/views/reports/tmpl/default.php b/tjreports/site/views/reports/tmpl/default.php index 108caa7..e521b09 100644 --- a/tjreports/site/views/reports/tmpl/default.php +++ b/tjreports/site/views/reports/tmpl/default.php @@ -74,7 +74,7 @@ if ($app->isSite() && isset($this->reportData->title)) { ?> -

reportData->title?>

+

reportData->title, ENT_COMPAT, 'UTF-8'); ?>