From a590ea55c2422cd0b11fb60e64275ad7e4f6bd26 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Thu, 4 Apr 2013 20:12:50 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9placement=20de=20la=20base=20de=20donn?= =?UTF-8?q?=C3=A9es=20et=20explication=20dans=20le=20README=20pour=20s?= =?UTF-8?q?=C3=A9curiser=20ce=20fichier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ poche.sqlite => db/poche.sqlite | Bin index.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) rename poche.sqlite => db/poche.sqlite (100%) diff --git a/README.md b/README.md index e0712ad..a1c7920 100755 --- a/README.md +++ b/README.md @@ -6,6 +6,16 @@ Abandon Pocket, Instapaper and other Readability service : adopt poche. It is th ... +## Security + +You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition : +```apache + + Order allow,deny + Deny from all + +``` + ## License Copyright © 2010-2013 Nicolas Lœuillet This work is free. You can redistribute it and/or modify it under the diff --git a/poche.sqlite b/db/poche.sqlite similarity index 100% rename from poche.sqlite rename to db/poche.sqlite diff --git a/index.php b/index.php index be1ebef..a27f199 100755 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ try { - $db_handle = new PDO('sqlite:poche.sqlite'); + $db_handle = new PDO('sqlite:db/poche.sqlite'); $db_handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (Exception $e)