Do not include empty values.

This commit is contained in:
Michal Čihař
2006-04-25 14:53:30 +00:00
parent 47bbff3b81
commit d8e41fbaac
2 changed files with 4 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ $Source$
2006-04-25 Michal Čihař <michal@cihar.com>
* libraries/common.lib.php: Make cookie login form work with token
protection.
* libraries/auth/cookie.auth.lib.php: Do not include empty values.
2006-04-25 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* db_details_qbe.php, db_printview.php, libraries/display_tbl.lib.php,

View File

@@ -212,13 +212,13 @@ echo sprintf( $GLOBALS['strWelcome'],
<input type="hidden" name="lang" value="<?php echo $lang; ?>" />
<input type="hidden" name="convcharset" value="<?php echo $convcharset; ?>" />
<?php
if (isset($GLOBALS['target'])) {
if (!empty($GLOBALS['target'])) {
echo ' <input type="hidden" name="target" value="' . htmlspecialchars($GLOBALS['target']) . '" />' . "\n";
}
if (isset($GLOBALS['db'])) {
if (!empty($GLOBALS['db'])) {
echo ' <input type="hidden" name="db" value="' . htmlspecialchars($GLOBALS['db']) . '" />' . "\n";
}
if (isset($GLOBALS['table'])) {
if (!empty($GLOBALS['table'])) {
echo ' <input type="hidden" name="table" value="' . htmlspecialchars($GLOBALS['table']) . '" />' . "\n";
}
?>