mirror of
https://github.com/owncloud/bookmarks.git
synced 2024-11-29 04:24:11 +01:00
Bookmark: change export file name fix #147
This commit is contained in:
parent
dea879eb16
commit
64799d8741
@ -41,11 +41,11 @@ foreach($bookmarks as $bm) {
|
||||
if($bm['description'])
|
||||
$file .= '<DD>'.htmlspecialchars($bm['description'], ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
|
||||
$export_name = "owncloud-bookmarks-".date('Y-m-d').'.html';
|
||||
header("Cache-Control: private");
|
||||
header("Content-Type: application/stream");
|
||||
header("Content-Length: ".$fileSize);
|
||||
header("Content-Disposition: attachment; filename=oc-bookmarks.html");
|
||||
header("Content-Disposition: attachment; filename=".$export_name);
|
||||
|
||||
echo $file;
|
||||
exit;
|
Loading…
Reference in New Issue
Block a user