Changeset 2900 for trunk/include


Ignore:
Timestamp:
Nov 23, 2008, 12:33:17 AM (15 years ago)
Author:
patdenice
Message:
  • Bug fixed: username or password with accented character are now accepted for upgrade.
  • Simplify query in pwg_session_write function.
  • Retrieve data with cURL method in fetchRemote function now work with forwarded URL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_session.inc.php

    r2884 r2900  
    132132{
    133133  $query = '
    134 UPDATE '.SESSIONS_TABLE.'
    135   SET expiration = now(),
    136   data = \''.$data.'\'
    137   WHERE id = \''.get_remote_addr_session_hash().$session_id.'\'
    138 ;';
    139   pwg_query($query);
    140   if ( mysql_affected_rows()>0 )
    141   {
    142     return true;
    143   }
    144   $query = '
    145 INSERT INTO '.SESSIONS_TABLE.'
     134REPLACE INTO '.SESSIONS_TABLE.'
    146135  (id,data,expiration)
    147136  VALUES(\''.get_remote_addr_session_hash().$session_id.'\',\''.$data.'\',now())
Note: See TracChangeset for help on using the changeset viewer.