]> git.koha-community.org Git - koha.git/commit
Bug 6629 : Sanitizing input from language cookie
authorChris Cormack <chrisc@catalyst.net.nz>
Fri, 25 Nov 2011 06:07:28 +0000 (19:07 +1300)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 29 Nov 2011 01:08:46 +0000 (20:08 -0500)
commitda171ec31c6cc805ae8efdcb72cd13ea43766e1b
tree87e3c40b61615dae7f6735f318ff4cce49ed23f1
parent16189ed8c37960a76d80899004654e617d98bcde
Bug 6629 : Sanitizing input from language cookie

I dont think we can use only 2 digits, some languages is much longer
zh-hans-TW for example

But the regex should stop it bening able handle nasty chars,
whitelisting safe ones instead

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
I checked the patch doesn't break language switching and language selection.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
I confirm the bug security issue was not here for master, but this fix improve the behaviour, so pushing it
(cherry picked from commit 9a4e9e54f26b0c1bf69c5be1f5b0fea93134c06a)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Templates.pm