aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-04 20:12:50 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-04 20:12:50 +0200
commita590ea55c2422cd0b11fb60e64275ad7e4f6bd26 (patch)
treeb1939bd3d7594bd2cf617f034b5aa1d5eb94ae24
parent5917f41972c038a125c054da1d7ae172fc3bd9d5 (diff)
downloadwallabag-a590ea55c2422cd0b11fb60e64275ad7e4f6bd26.tar.gz
wallabag-a590ea55c2422cd0b11fb60e64275ad7e4f6bd26.tar.zst
wallabag-a590ea55c2422cd0b11fb60e64275ad7e4f6bd26.zip
déplacement de la base de données et explication dans le README pour sécuriser ce fichier
-rwxr-xr-xREADME.md10
-rwxr-xr-xdb/poche.sqlite (renamed from poche.sqlite)bin163840 -> 163840 bytes
-rwxr-xr-xindex.php2
3 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index e0712add..a1c7920f 100755
--- a/README.md
+++ b/README.md
@@ -6,6 +6,16 @@ Abandon Pocket, Instapaper and other Readability service : adopt poche. It is th
6 6
7... 7...
8 8
9## Security
10
11You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition :
12```apache
13<Files ~ "\.sqlite$">
14 Order allow,deny
15 Deny from all
16</Files>
17```
18
9## License 19## License
10Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org> 20Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org>
11This work is free. You can redistribute it and/or modify it under the 21This work is free. You can redistribute it and/or modify it under the
diff --git a/poche.sqlite b/db/poche.sqlite
index 9ae63ec0..9ae63ec0 100755
--- a/poche.sqlite
+++ b/db/poche.sqlite
Binary files differ
diff --git a/index.php b/index.php
index be1ebef9..a27f1993 100755
--- a/index.php
+++ b/index.php
@@ -25,7 +25,7 @@
25 25
26try 26try
27{ 27{
28 $db_handle = new PDO('sqlite:poche.sqlite'); 28 $db_handle = new PDO('sqlite:db/poche.sqlite');
29 $db_handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); 29 $db_handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
30} 30}
31catch (Exception $e) 31catch (Exception $e)