changeset 49:afa835f5c000

Lower case language setting from cookie, just in case.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 26 May 2016 13:22:29 +0300
parents 5a2dd41ff7ad
children 4ecdbe226155
files mgallery.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.php	Wed May 25 20:33:36 2016 +0300
+++ b/mgallery.php	Thu May 26 13:22:29 2016 +0300
@@ -394,7 +394,7 @@
 else
 if (isset($_COOKIE["mglang"]))
 {
-  $tmp = $_COOKIE["mglang"];
+  $tmp = strtolower($_COOKIE["mglang"]);
   if (array_key_exists($tmp, $pageLanguages))
     $pageLang = $tmp;
 }