Added validation for HTTP_HOST, fixed #1153