fix security issue (thank to Zerdoumi for reporting it)

fix security issue (thank to Zerdoumi for reporting it)
Et un commentaire genre :
```
// Check if user is allowed to go in this directory, security check
```