Skip to content
Snippets Groups Projects
Commit e08dbf80 authored by ideaship's avatar ideaship
Browse files

fix: use print_escaped for radio button "checked"

use of p() results in escaped HTML code: checked="checked"
where it should be: checked="checked"
parent 1785c0c9
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@
<input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>" />
<?php else: ?>
<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>
<?php endif; ?>
<?php endforeach; ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment