Skip to content
Commit 53620de6 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Stas Vilchik
Browse files

do not send an overriden language if none is set

If the browser does not have any language configured
`window.navigator.languages == []` and
`window.navigator.language == ""`.
(at least on FF)
In this case an empty GET parameter is submitted to `/api/l10n/index?locale=`.
This leads to a 400 Bad Request response and no language data.
Therefore the navbar has no UI elements and is unusable, make login impossible.
parent bfcbb7e3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment