Replace foreach with in_array
fix form spoofing
Merge pull request #1305 from Philo01/patch-validate-mimes

Replace foreach with in_array
Merge pull request #1306 from ShawnMcCool/fixRestFormSpoofing

fix form spoofing
Swap dev queue back to iron.
Fix query string infinite redirect. Fixes #1309.