Changeset 868 for trunk/include


Ignore:
Timestamp:
Sep 18, 2005, 11:56:56 PM (19 years ago)
Author:
plg
Message:
  • bug 107 fixed: crash when logging visit on a category containing "'" character. Correction reported from branch 1.4
  • bug fixed: in admin/stats, incorrect SQL queries gave no result.
File:
1 edited

Legend:

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

    r862 r868  
    360360  VALUES
    361361  (NOW(),
    362   \''.(($user['id'] == 2) ? 'guest' : $user['username']).'\',
     362  \''.(($user['id'] == 2) ? 'guest' : addslashes($user['username'])).'\',
    363363  \''.$_SERVER['REMOTE_ADDR'].'\',
    364   \''.$file.'\',
    365   \''.$category.'\',
    366   \''.$picture.'\')
     364  \''.addslashes($file).'\',
     365  \''.addslashes($category).'\',
     366  \''.addslashes($picture).'\')
    367367;';
    368368    pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.