django/django — pull request #1947 by bmispelon (2013-11-20 16:23:00+00:00)
Title: Fixed #21458 -- Made check_for_language more resistant to malformed input

Thanks to Sergey Sorokin for the report.