Ignore:
Timestamp:
May 21, 2011, 5:00:14 PM (13 years ago)
Author:
Eric
Message:

using conf_update_param() and pwg_db_real_escape_string()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/LCAS/trunk/admin/LCAS_admin.php

    r10549 r10979  
    4646    $_POST['LCAS_MailText']);
    4747
    48   $conf['LoginCaseAccentsSensitivity'] = serialize($newconf_LCAS);
    49 
    50   $query = '
    51     UPDATE '.CONFIG_TABLE.'
    52     SET value="'.addslashes($conf['LoginCaseAccentsSensitivity']).'"
    53     WHERE param="LoginCaseAccentsSensitivity"
    54     LIMIT 1
    55     ;';
    56  
    57   pwg_query($query);
     48  conf_update_param('LoginCaseAccentsSensitivity', pwg_db_real_escape_string(serialize($newconf_LCAS)));
    5849
    5950  array_push($page['infos'], l10n('LCAS_save_config'));
     
    123114          $query = '
    124115            UPDATE '.USERS_TABLE.'
    125             SET username="'.addslashes($_POST['user-'.$lcas_UserToUpdate]).'"
     116            SET username="'.pwg_db_real_escape_string($_POST['user-'.$lcas_UserToUpdate]).'"
    126117            WHERE id='.$lcas_UserToUpdate.'
    127118            LIMIT 1
Note: See TracChangeset for help on using the changeset viewer.