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/maintain.inc.php

    r10046 r12151  
    4949    $q = '
    5050INSERT INTO '.CONFIG_TABLE.' (param,value,comment)
    51 VALUES ("HistoryIPConfig","'.addslashes(serialize($default)).'","History IP Excluder options");
     51VALUES ("HistoryIPConfig","'.pwg_db_real_escape_string(serialize($default)).'","History IP Excluder options");
    5252';
    5353    pwg_query($q);
Note: See TracChangeset for help on using the changeset viewer.