Skip to content

Commit

Permalink
Purify analytics ID
Browse files Browse the repository at this point in the history
  • Loading branch information
samerton committed Sep 25, 2021
1 parent af12a08 commit 3a1fab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/templates/frontend_init.php
Expand Up @@ -134,5 +134,5 @@
$smarty->assign('FAVICON', Output::getClean($favicon_image));

$analytics_id = $configuration->get('Core', 'ga_script');
if($analytics_id != null && !empty($analytics_id))
$smarty->assign('ANALYTICS_ID', $analytics_id);
if ($analytics_id)
$smarty->assign('ANALYTICS_ID', Output::getClean($analytics_id));

0 comments on commit 3a1fab7

Please sign in to comment.