Changeset 784


Ignore:
Timestamp:
May 2, 2005, 10:44:27 PM (19 years ago)
Author:
plg
Message:
  • bug 107 fixed : "crash when virtual category name contains a quote". In fact, the problem was in log line insertion. Category name must be "addslashed".
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_4/include/functions.inc.php

    r749 r784  
    341341  VALUES
    342342  (NOW(),
    343   \''.(($user['id'] == 2) ? 'guest' : $user['username']).'\',
     343  \''.(($user['id'] == 2) ? 'guest' : addslashes($user['username'])).'\',
    344344  \''.$_SERVER['REMOTE_ADDR'].'\',
    345   \''.$file.'\',
    346   \''.$category.'\',
    347   \''.$picture.'\')
     345  \''.addslashes($file).'\',
     346  \''.addslashes($category).'\',
     347  \''.addslashes($picture).'\')
    348348;';
    349349    pwg_query($query);
Note: See TracChangeset for help on using the changeset viewer.