Ignore:
Timestamp:
Apr 7, 2012, 10:59:33 PM (9 years ago)
Author:
plg
Message:

bug 2610 fixed: make sure the $_GETlang or $_GETlanguage is in the
list of available languages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/upgrade.php

    r12296 r13955  
    155155{
    156156  $language = strip_tags($_GET['language']);
     157
     158  if (!in_array($language, array_keys($languages->fs_languages)))
     159  {
     160    $language = PHPWG_DEFAULT_LANGUAGE;
     161  }
    157162}
    158163else
Note: See TracChangeset for help on using the changeset viewer.