From 64799d874112afcee45224d887835d34a67a5bbf Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Thu, 8 Nov 2012 21:53:51 +0000 Subject: [PATCH] Bookmark: change export file name fix #147 --- export.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/export.php b/export.php index 46c932db..17bd3ca8 100644 --- a/export.php +++ b/export.php @@ -41,11 +41,11 @@ foreach($bookmarks as $bm) { if($bm['description']) $file .= '
'.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; \ No newline at end of file