Ignore:
Timestamp:
Sep 13, 2011, 10:03:04 PM (13 years ago)
Author:
Eric
Message:
  • Use data serialization for database storage
  • Use pwg_db_real_escape_string() instead of addslashes()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/HistoryIPExcluder/branches/2.2/admin/HIPE_admin.php

    r6758 r12151  
    4242    'Version'   => $version,
    4343  );
    44  
    45   $conf['HistoryIPConfig'] = serialize($newconf_HIPE);
    46 
    47   $query = '
    48     UPDATE '.CONFIG_TABLE.'
    49     SET value="'.addslashes($conf['HistoryIPConfig']).'"
    50     WHERE param="HistoryIPConfig"
    51     LIMIT 1';
    52   pwg_query($query);
     44
     45  conf_update_param('HistoryIPConfig', pwg_db_real_escape_string(serialize($newconf_HIPE)));
    5346
    5447  // information message
Note: See TracChangeset for help on using the changeset viewer.