Skip to content
Permalink
Browse files

Escape binary log name

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information...
nijel committed Jun 17, 2016
1 parent 8716855 commit d648ade18d6cbb796a93261491c121f078df2d88
Showing with 3 additions and 3 deletions.
  1. +3 −3 templates/server/binlog/log_selector.phtml
@@ -7,8 +7,8 @@
<?php $full_size = 0; ?>
<select name="log">
<?php foreach ($binary_logs as $each_log): ?>
<option value="<?= $each_log['Log_name']; ?>"<?= ($each_log['Log_name'] == $_REQUEST['log'] ? ' selected="selected"' : ''); ?>>
<?= $each_log['Log_name']; ?>
<option value="<?= htmlspecialchars($each_log['Log_name']); ?>"<?= ($each_log['Log_name'] == $_REQUEST['log'] ? ' selected="selected"' : ''); ?>>
<?= htmlspecialchars($each_log['Log_name']); ?>
<?php if (isset($each_log['File_size'])): ?>
(<?= implode(' ', \PMA\libraries\Util::formatByteDown($each_log['File_size'], 3, 2)); ?>)
<?php $full_size += $each_log['File_size']; ?>
@@ -24,4 +24,4 @@
<fieldset class="tblFooters">
<input type="submit" value="<?= __('Go'); ?>" />
</fieldset>
</form>
</form>

0 comments on commit d648ade

Please sign in to comment.
You can’t perform that action at this time.