diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-04 20:12:50 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-04 20:12:50 +0200 |
commit | a590ea55c2422cd0b11fb60e64275ad7e4f6bd26 (patch) | |
tree | b1939bd3d7594bd2cf617f034b5aa1d5eb94ae24 | |
parent | 5917f41972c038a125c054da1d7ae172fc3bd9d5 (diff) | |
download | wallabag-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-x | README.md | 10 | ||||
-rwxr-xr-x | db/poche.sqlite (renamed from poche.sqlite) | bin | 163840 -> 163840 bytes | |||
-rwxr-xr-x | index.php | 2 |
3 files changed, 11 insertions, 1 deletions
@@ -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 | |||
11 | You **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 |
10 | Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org> | 20 | Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org> |
11 | This work is free. You can redistribute it and/or modify it under the | 21 | This 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 | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | try | 26 | try |
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 | } |
31 | catch (Exception $e) | 31 | catch (Exception $e) |