Permalink
Browse files

Escape special chars when displaying filename template cookies.

  • Loading branch information...
nijel committed Mar 24, 2009
1 parent dcf6686 commit a2ed6da8a9a645eec8b814e0af634155dedec69b
Showing with 3 additions and 3 deletions.
  1. +3 −3 libraries/display_export.lib.php
@@ -172,19 +172,19 @@ function PMA_exportIsActive($what, $val) {
echo ' value="';
if ($export_type == 'database') {
if (isset($_COOKIE) && !empty($_COOKIE['pma_db_filename_template'])) {
echo $_COOKIE['pma_db_filename_template'];
echo htmlspecialchars($_COOKIE['pma_db_filename_template']);
} else {
echo $GLOBALS['cfg']['Export']['file_template_database'];
}
} elseif ($export_type == 'table') {
if (isset($_COOKIE) && !empty($_COOKIE['pma_table_filename_template'])) {
echo $_COOKIE['pma_table_filename_template'];
echo htmlspecialchars($_COOKIE['pma_table_filename_template']);
} else {
echo $GLOBALS['cfg']['Export']['file_template_table'];
}
} else {
if (isset($_COOKIE) && !empty($_COOKIE['pma_server_filename_template'])) {
echo $_COOKIE['pma_server_filename_template'];
echo htmlspecialchars($_COOKIE['pma_server_filename_template']);
} else {
echo $GLOBALS['cfg']['Export']['file_template_server'];
}

0 comments on commit a2ed6da

Please sign in to comment.