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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.