Test allowedExtensions in UploadField, return correct HTTP status
FIX preg_replace_callback in emailer was broken

Fixes bug introduced by 9deb11f9a0ee01477af38f2826b2a7583545a0b6
Email has no content
This is what happens when we make commits without testing!
Merge pull request #2229 from ss23/patch-6

FIX preg_replace_callback in emailer was broken
FIX Prevent DOS by checking for env and admin on ?flush=1 (#1692)
Merge pull request #2243 from hafriedlander/fix/flush_30

FIX Prevent DOS by checking for env and admin on ?flush=1 (#1692)
Merge branch 'origin/3.0' into 3.1