Skip to content

Commit 574d3e5

Browse files
authored
Encode ampersands in the URL for the new piwik_opt_out_code output (#53)
This makes sure the output can be parsed by parsers expecting (X)HTML output.
1 parent 3344413 commit 574d3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Twig/Extension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function piwikOptOutCode(): string
112112
{
113113
return <<<EOT
114114
<div id="matomo-opt-out"></div>
115-
<script src="https://{$this->piwikHost}/index.php?module=CoreAdminHome&action=optOutJS&divId=matomo-opt-out&language=auto&showIntro=1"></script>
115+
<script src="https://{$this->piwikHost}/index.php?module=CoreAdminHome&amp;action=optOutJS&amp;divId=matomo-opt-out&amp;language=auto&amp;showIntro=1"></script>
116116
EOT;
117117
}
118118

0 commit comments

Comments
 (0)