Merge pull request #819 from wallabag/fixSQLiteDownloadDB

Fix downloading SQLite database from all users
This commit is contained in:
tcitworld
2014-09-10 20:05:07 +02:00
4 changed files with 0 additions and 20 deletions

View File

@ -124,8 +124,6 @@ class Routing
} elseif (isset($_GET['import'])) {
$import = $this->wallabag->import();
$tplVars = array_merge($this->vars, $import);
} elseif (isset($_GET['download'])) {
Tools::downloadDb();
} elseif (isset($_GET['empty-cache'])) {
Tools::emptyCache();
} elseif (isset($_GET['export'])) {

View File

@ -294,21 +294,6 @@ final class Tools
}
}
/**
* Download the sqlite database
*/
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));
exit;
}
/**
* Get the content for a given URL (by a call to FullTextFeed)
*