master
xSmurf 9 years ago
parent 820a31d253
commit 11586f1e31

@ -50,6 +50,7 @@ func Main(mode int) {
readonly = true readonly = true
} }
for _, fpath := range os.Args[start:] { for _, fpath := range os.Args[start:] {
fpath = path.Clean(fpath);
if !strings.HasPrefix(fpath, homedir) { if !strings.HasPrefix(fpath, homedir) {
log.Warning("Ignored `%s`, only files inside of home are permitted!", fpath) log.Warning("Ignored `%s`, only files inside of home are permitted!", fpath)
continue continue

Loading…
Cancel
Save