Bug 855734 - Strip trailing "." from request host
Bug 855734 - Strip trailing "." from request host

People (several per day) are getting to mozilla.org via URLs like
http://www.mozilla.org./en-US/grants/. This causes the HTTP_HOST
header to be 'www.mozilla.org.', which doesn't match Django's
ALLOWED_HOSTS, which then throws errors. Apache redirect people
coming to the site with a HOST that ends in a ".".

andreadelrio/bedrock,SujaySKumar/bedrock,rishiloyola/bedrock,yglazko/bedrock,mmmavis/lightbeam-bedrock-website,kyoshino/bedrock,jpetto/bedrock,sylvestre/bedrock,Sancus/bedrock,CSCI-462-01-2017/bedrock,jgmize/bedrock,hoosteeno/bedrock,alexgibson/bedrock,TheoChevalier/bedrock,MichaelKohler/bedrock,hoosteeno/bedrock,craigcook/bedrock,TheJJ100100/bedrock,pmclanahan/bedrock,bensternthal/bedrock,malena/bedrock,TheoChevalier/bedrock,ericawright/bedrock,amjadm61/bedrock,petabyte/bedrock,SujaySKumar/bedrock,mozilla/bedrock,jacshfr/mozilla-bedrock,sgarrity/bedrock,pascalchevrel/bedrock,mahinthjoe/bedrock,mmmavis/lightbeam-bedrock-website,l-hedgehog/bedrock,Sancus/bedrock,amjadm61/bedrock,andreadelrio/bedrock,elin-moco/bedrock,jgmize/bedrock,MichaelKohler/bedrock,CSCI-462-01-2017/bedrock,jgmize/bedrock,Jobava/bedrock,glogiotatidis/bedrock,amjadm61/bedrock,dudepare/bedrock,ckprice/bedrock,jpetto/bedrock,l-hedgehog/bedrock,jacshfr/mozilla-bedrock,glogiotatidis/bedrock,dudepare/bedrock,alexgibson/bedrock,mozilla/bedrock,ckprice/bedrock,marcoscaceres/bedrock,gerv/bedrock,sylvestre/bedrock,ericawright/bedrock,jacshfr/mozilla-bedrock,MichaelKohler/bedrock,malena/bedrock,malena/bedrock,CSCI-462-01-2017/bedrock,mmmavis/bedrock,analytics-pros/mozilla-bedrock,petabyte/bedrock,pascalchevrel/bedrock,elin-moco/bedrock,bensternthal/bedrock,andreadelrio/bedrock,kyoshino/bedrock,chirilo/bedrock,sgarrity/bedrock,amjadm61/bedrock,mahinthjoe/bedrock,gauthierm/bedrock,gauthierm/bedrock,davehunt/bedrock,TheoChevalier/bedrock,alexgibson/bedrock,gerv/bedrock,andreadelrio/bedrock,dudepare/bedrock,rishiloyola/bedrock,CSCI-462-01-2017/bedrock,yglazko/bedrock,jgmize/bedrock,davehunt/bedrock,mozilla/bedrock,glogiotatidis/bedrock,ckprice/bedrock,TheoChevalier/bedrock,SujaySKumar/bedrock,mozilla/bedrock,SujaySKumar/bedrock,TheJJ100100/bedrock,l-hedgehog/bedrock,yglazko/bedrock,craigcook/bedrock,mermi/bedrock,glogiotatidis/bedrock,ckprice/bedrock,mahinthjoe/bedrock,mmmavis/bedrock,petabyte/bedrock,sgarrity/bedrock,bensternthal/bedrock,mkmelin/bedrock,gauthierm/bedrock,flodolo/bedrock,dudepare/bedrock,mermi/bedrock,craigcook/bedrock,pascalchevrel/bedrock,petabyte/bedrock,gerv/bedrock,marcoscaceres/bedrock,elin-moco/bedrock,marcoscaceres/bedrock,rishiloyola/bedrock,mmmavis/bedrock,jacshfr/mozilla-bedrock,ericawright/bedrock,mkmelin/bedrock,analytics-pros/mozilla-bedrock,craigcook/bedrock,bensternthal/bedrock,mahinthjoe/bedrock,mmmavis/lightbeam-bedrock-website,mermi/bedrock,schalkneethling/bedrock,schalkneethling/bedrock,pmclanahan/bedrock,pascalchevrel/bedrock,sylvestre/bedrock,gauthierm/bedrock,pmclanahan/bedrock,marcoscaceres/bedrock,Sancus/bedrock,Sancus/bedrock,davehunt/bedrock,kyoshino/bedrock,mkmelin/bedrock,ericawright/bedrock,malena/bedrock,mmmavis/bedrock,flodolo/bedrock,kyoshino/bedrock,sgarrity/bedrock,mkmelin/bedrock,jpetto/bedrock,davehunt/bedrock,l-hedgehog/bedrock,alexgibson/bedrock,jpetto/bedrock,Jobava/bedrock,chirilo/bedrock,flodolo/bedrock,mermi/bedrock,yglazko/bedrock,hoosteeno/bedrock,sylvestre/bedrock,MichaelKohler/bedrock,analytics-pros/mozilla-bedrock,rishiloyola/bedrock,analytics-pros/mozilla-bedrock,elin-moco/bedrock,amjadm61/bedrock,jacshfr/mozilla-bedrock,chirilo/bedrock,Jobava/bedrock,pmclanahan/bedrock,Jobava/bedrock,schalkneethling/bedrock,TheJJ100100/bedrock,hoosteeno/bedrock,gerv/bedrock,TheJJ100100/bedrock,flodolo/bedrock,schalkneethling/bedrock,chirilo/bedrock