mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-23 08:06:33 +00: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
3 changed files with 11 additions and 1 deletions
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 a new issue