Changeset 8206 for extensions/LCAS


Ignore:
Timestamp:
Dec 20, 2010, 9:17:45 PM (13 years ago)
Author:
Eric
Message:

bug 2069 : Bad use of LCAS_change_case() function fixed

Location:
extensions/LCAS/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/include/functions.inc.php

    r8202 r8206  
    860860 *
    861861 */
    862 /*function LCAS_SearchCaseUsername($username)
     862function LCAS_SearchCaseUsername($username, $rule)
    863863{
    864864  global $conf;
    865  
     865
     866  $username = LCAS_change_case($username, $rule);
     867
    866868  if (isset($username))
    867869  {
     
    876878    return isset($username) ? $username : '';
    877879  }
    878 }*/
     880}
    879881
    880882
  • extensions/LCAS/trunk/main.inc.php

    r8203 r8206  
    6363      if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'false')
    6464      {
    65         // For testing only // $new_username = LCAS_SearchCaseUsername($_POST['username']);
    66         $new_username = LCAS_change_case($_POST['username'], 1);
     65        $new_username = LCAS_SearchCaseUsername($_POST['username'],1);
    6766        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
    6867      }
     
    7170      if (isset($conf_LCAS[0]) and $conf_LCAS[0] == 'false' and isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true')
    7271      {
    73         $new_username = LCAS_change_case($_POST['username'], 2);
     72        $new_username = LCAS_SearchCaseUsername($_POST['username'],2);
    7473        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
    7574      }
     
    7877      if (isset($conf_LCAS[1]) and $conf_LCAS[1] == 'true' and isset($conf_LCAS[0]) and $conf_LCAS[0] == 'true')
    7978      {
    80         $new_username = LCAS_change_case($_POST['username'], 3);
     79        $new_username = LCAS_SearchCaseUsername($_POST['username'],3);
    8180        $_POST['username'] = $new_username == '' ? $_POST['username'] : $new_username;
    8281      }
Note: See TracChangeset for help on using the changeset viewer.