Skip to content

Commit

Permalink
xss on contact form fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Jan 19, 2022
1 parent e17f3e9 commit b64ef57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions userfiles/modules/admin/notifications/notif_form_entry.php
Expand Up @@ -91,7 +91,6 @@
<hr class="thin" />
<div class="row">


<?php
$iformVr=0;
foreach ($form_values_formated as $form_values_row) {
Expand All @@ -106,12 +105,12 @@
<?php if (!is_array($val1)){ ?>
<div>
<small class="text-muted"><?php echo str_replace('_', ' ', $key); ?>:</small>
<p><?php print $val1; ?></p>
<p><?php print htmlentities($val1); ?></p>
</div>
<?php } else { ?>
<small class="text-muted"><?php echo str_replace('_', ' ', $key); ?>:</small>
<?php foreach ($val1 as $val1_1){ ?>
<p><?php print $val1_1 . '<br />'; ?></p>
<p><?php print htmlentities($val1_1) . '<br />'; ?></p>
<?php }?>
<?php } ?>
<?php } ?>
Expand Down

0 comments on commit b64ef57

Please sign in to comment.