fix: use print_escaped for radio button "checked"

use of p() results in escaped HTML code: checked="checked"
where it should be: checked="checked"
remotes/origin/ldap_group_count
ideaship 11 years ago
parent 1785c0c9b9
commit e08dbf80dc
  1. 2
      core/templates/installation.php

@ -95,7 +95,7 @@
<input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>" /> <input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>" />
<?php else: ?> <?php else: ?>
<input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>" <input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>"
<?php p($_['dbtype'] === $type ? 'checked="checked" ' : '') ?>/> <?php print_unescaped($_['dbtype'] === $type ? 'checked="checked" ' : '') ?>/>
<label class="<?php p($type) ?>" for="<?php p($type) ?>"><?php p($label) ?></label> <label class="<?php p($type) ?>" for="<?php p($type) ?>"><?php p($label) ?></label>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>

Loading…
Cancel
Save