diff --git a/modules/consent/templates/consentform.php b/modules/consent/templates/consentform.php index b5d49cb1ae5f6e8aa5dd27db98d32849a6278ec0..d023eed33a9735207262692154608ce4b109d29a 100644 --- a/modules/consent/templates/consentform.php +++ b/modules/consent/templates/consentform.php @@ -53,6 +53,8 @@ if (is_array($dstName)) { $dstName = $this->t($dstName); } +$srcName = htmlspecialchars($srcName); +$dstName = htmlspecialchars($dstName); $attributes = $this->data['attributes']; @@ -111,7 +113,7 @@ foreach ($this->data['noData'] as $name => $value) { <?php if ($this->data['sppp'] !== FALSE) { echo "<p>" . htmlspecialchars($this->t('{consent:consent:consent_privacypolicy}')) . " "; - echo "<a target='_blank' href='" . htmlspecialchars($this->data['sppp']) . "'>" . htmlspecialchars($dstName) . "</a>"; + echo "<a target='_blank' href='" . htmlspecialchars($this->data['sppp']) . "'>" . $dstName . "</a>"; echo "</p>"; } ?> @@ -165,7 +167,7 @@ function present_attributes($t, $attributes, $nameParent) { $str .= '<ul>'; foreach ($value AS $listitem) { if ($nameraw === 'jpegPhoto') { - $str .= '<li><img src="data:image/jpeg;base64,' . $listitem . '" alt="User photo" /></li>'; + $str .= '<li><img src="data:image/jpeg;base64,' . htmlspecialchars($listitem) . '" alt="User photo" /></li>'; } else { $str .= '<li>' . htmlspecialchars($listitem) . '</li>'; }