zotonic/zotonic — Issue #258: You should not be able to set an unsupported language in the URL
Author: arjan
Created: 2011-11-10 07:30:25+00:00
State: open

http://127.0.0.1:8000/ru/article/316/welcome-to-zotonic-0-8-dev
http://127.0.0.1:8000/ru/

These urls work although I do not have russian enabled.

Furthermore: this URL crashes my dispatcher:

http://127.0.0.1:8000/ru

(e.g. without the slash). Isn't the dispatcher supervised??

```
=ERROR REPORT==== 10-Nov-2011::08:28:05 ===
** Generic server z_sites_dispatcher terminating
** Last message in was {dispatch,"127.0.0.1:8000","/ru",
{wm_reqdata,#Port<0.15908>,
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},
undefined,"127.0.0.1",undefined,
{wm_log_data,1001320910085019087,undefined,
{1320,910085,19136},
'GET',
{8,
{"host",
{'Host',"127.0.0.1:8000"},
{"accept",
{'Accept',
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"},
nil,
{"accept-language",
{'Accept-Language',
"en-US,en;q=0.9,en-gb;q=0.8,nl-NL;q=0.7,nl;q=0.6,fr-FR;q=0.4,fr;q=0.3,pl-PL;q=0.2,pl;q=0.1"},
{"accept-encoding",
{'Accept-Encoding',"gzip, deflate"},
{"accept-charset",
{'Accept-Charset',
"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
nil,nil},
nil},
{"connection",
```