cgi-bin/tek/class/loona.lua
changeset 252 8b4bf1c5d718
parent 251 2de5931b723d
child 253 c845ac1bb22c
     1.1 --- a/cgi-bin/tek/class/loona.lua	Fri Oct 24 01:35:27 2008 +0200
     1.2 +++ b/cgi-bin/tek/class/loona.lua	Wed Nov 05 11:58:20 2008 +0100
     1.3 @@ -1240,7 +1240,7 @@
     1.4  	self.langs = { l and l:match("^%w+$") }
     1.5  	local s = self.request.HTTP_ACCEPT_LANGUAGE
     1.6  	if s then
     1.7 -		for l in (s .. ";"):gmatch("([%a-]+)[,;]") do
     1.8 +		for l in (s .. ";"):gmatch("(%a+)%-?%a*[,;]") do
     1.9  			insert(self.langs, l)
    1.10  		end
    1.11  	end