urldecode the db name if (isset($lightm_db)) { $db = urldecode($lightm_db); unset($lightm_db); } $url_query = PMA_generate_common_url(isset($db) ? $db : ''); header('Content-Type: text/html; charset=' . $GLOBALS['charset']); ?>