mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
déplacement de la base de données et explication dans le README pour sécuriser ce fichier
This commit is contained in:
parent
5917f41972
commit
a590ea55c2
10
README.md
10
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
|
||||||
|
<Files ~ "\.sqlite$">
|
||||||
|
Order allow,deny
|
||||||
|
Deny from all
|
||||||
|
</Files>
|
||||||
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org>
|
Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org>
|
||||||
This work is free. You can redistribute it and/or modify it under the
|
This work is free. You can redistribute it and/or modify it under the
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
try
|
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);
|
$db_handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
|
Loading…
Reference in New Issue
Block a user