diff --git a/libraries/url_generating.lib.php b/libraries/url_generating.lib.php index 26e7dfa08..f93e74c70 100644 --- a/libraries/url_generating.lib.php +++ b/libraries/url_generating.lib.php @@ -124,8 +124,11 @@ function PMA_getHiddenFields($values, $pre = '') if (is_array($value)) { $fields .= PMA_getHiddenFields($value, $name); } else { + // do not generate an ending "\n" because + // PMA_generate_common_hidden_inputs() is sometimes called + // from a JS document.write() $fields .= '' . "\n"; + . '" value="' . htmlspecialchars($value) . '" />'; } } diff --git a/main.php b/main.php index d14793a9a..9531fae71 100644 --- a/main.php +++ b/main.php @@ -149,16 +149,22 @@ if ($GLOBALS['cfg']['ThemeManager']) { echo '