sql injection fixups
Merge branch 'master' into gh-pages