Permalink
Browse files

Fixed issue Google Analytics Style #2 breaks if group names contain s…

…pecial characters
  • Loading branch information...
1 parent 3f6b34e commit 32e3468cad256bc3d61960d48528ae24faa20118 @TMSWhite TMSWhite committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 replacements.php
View
@@ -621,7 +621,7 @@ function templatereplace($line, $replacements=array(), $anonymized=false, $quest
{
$gseq=$moveInfo['gseq']+1;
}
- $_trackURL = htmlspecialchars($thissurvey['name'] . '-[' . $surveyid . ']/[' . $gseq . ']-' . $_groupname);
+ $_trackURL = htmlentities($thissurvey['name'] . '-[' . $surveyid . ']/[' . $gseq . ']-' . $_groupname, ENT_QUOTES);
$_googleAnalyticsJavaScript = <<<EOD
<script type="text/javascript">
var _gaq = _gaq || [];

0 comments on commit 32e3468

Please sign in to comment.