Fix #17324: remove var_dump()
Issue #17322: apply same logic in bug_file_add.php