Skip to content

Commit

Permalink
XSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
helmo committed Aug 5, 2011
1 parent 2b0d12b commit 3d8fddc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tbl_tracking.php
Expand Up @@ -372,7 +372,7 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
?>
<h3><?php echo __('Tracking report');?> [<a href="tbl_tracking.php?<?php echo $url_query;?>"><?php echo __('Close');?></a>]</h3>

<small><?php echo __('Tracking statements') . ' ' . $data['tracking']; ?></small><br/>
<small><?php echo __('Tracking statements') . ' ' . htmlspecialchars($data['tracking']); ?></small><br/>
<br/>

<form method="post" action="tbl_tracking.php<?php echo PMA_generate_common_url($url_params + array('report' => 'true', 'version' => $_REQUEST['version'])); ?>">
Expand All @@ -383,9 +383,9 @@ function PMA_filter_tracking($data, $filter_ts_from, $filter_ts_to, $filter_user
'<option value="data"' . ($selection_data ? ' selected="selected"' : ''). '>' . __('Data only') . '</option>' .
'<option value="schema_and_data"' . ($selection_both ? ' selected="selected"' : '') . '>' . __('Structure and data') . '</option>' .
'</select>';
$str2 = '<input type="text" name="date_from" value="' . $_REQUEST['date_from'] . '" size="19" />';
$str3 = '<input type="text" name="date_to" value="' . $_REQUEST['date_to'] . '" size="19" />';
$str4 = '<input type="text" name="users" value="' . $_REQUEST['users'] . '" />';
$str2 = '<input type="text" name="date_from" value="' . htmlspecialchars($_REQUEST['date_from']) . '" size="19" />';
$str3 = '<input type="text" name="date_to" value="' . htmlspecialchars($_REQUEST['date_to']) . '" size="19" />';
$str4 = '<input type="text" name="users" value="' . htmlspecialchars($_REQUEST['users']) . '" />';
$str5 = '<input type="submit" name="list_report" value="' . __('Go') . '" />';

printf(__('Show %s with dates from %s to %s by user %s %s'), $str1, $str2, $str3, $str4, $str5);
Expand Down

0 comments on commit 3d8fddc

Please sign in to comment.