forked from wallabag/wallabag
Fix downloading SQLite database from all users
This commit is contained in:
@ -296,18 +296,20 @@ final class Tools
|
||||
|
||||
/**
|
||||
* Download the sqlite database
|
||||
* Function not longer used for security reasons
|
||||
*/
|
||||
public static function downloadDb()
|
||||
{
|
||||
header('Content-Disposition: attachment; filename="poche.sqlite.gz"');
|
||||
self::_status(200);
|
||||
|
||||
header('Content-Transfer-Encoding: binary');
|
||||
header('Content-Type: application/octet-stream');
|
||||
echo gzencode(file_get_contents(STORAGE_SQLITE));
|
||||
// public static function downloadDb()
|
||||
// {
|
||||
// header('Content-Disposition: attachment; filename="poche.sqlite.gz"');
|
||||
// self::_status(200);
|
||||
|
||||
exit;
|
||||
}
|
||||
// header('Content-Transfer-Encoding: binary');
|
||||
// header('Content-Type: application/octet-stream');
|
||||
// echo gzencode(file_get_contents(STORAGE_SQLITE));
|
||||
|
||||
// exit;
|
||||
// }
|
||||
|
||||
/**
|
||||
* Get the content for a given URL (by a call to FullTextFeed)
|
||||
|
||||
Reference in New Issue
Block a user