add security code from myfreeweb/master
Merge branch 'security' into synology