Commit 9b1e6789 authored by Robert Ricci's avatar Robert Ricci

Put back the content-disposition headers - Windows is totally lost

without them. But, use the 'inline' disposition instead of
'attachment', which seems to allow Mozilla et al to run them w/o
a dialog box. IE still pops one up, though.

Also, change the extension of the ssh files to tbssh - tbc conflicts
with other stuff under Windows.
parent 2f44b953
......@@ -53,8 +53,9 @@ if (!isset($pid)) {
USERERROR("$node_id is not allocated to an experiment!", 1);
}
$filename = $node_id . ".tbc";
$filename = $node_id . ".tbssh";
header("Content-Type: text/x-testbed-ssh");
header("Content-Disposition: inline; filename=$filename;");
header("Content-Description: SSH description file for a testbed node");
echo "hostname: $vname.$eid.$pid.$OURDOMAIN\n";
......
......@@ -46,6 +46,7 @@ if (mysql_num_rows($query_result) == 0) {
$filename = $node_id . ".tbacl";
header("Content-Type: text/x-testbed-acl");
header("Content-Disposition: inline; filename=$filename;");
header("Content-Description: ACL key file for a testbed node serial port");
# XXX, should handle multiple tip lines gracefully somehow,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment