diff --git a/doc/ChangeLog b/doc/ChangeLog index a42e336a7..5a013857d 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,7 +1,19 @@ -2005-09-21 Pierrick LE GALL +2005-09-24 Pierrick LE GALL + + * bug fixed: HTML error on nested UL in categories menu. + + * bug 161 fixed: guest_id not taken into account for history table + insert. + + * bug 164 fixed: category inserted in history table becomes too + long if HTML tags are kept. + +2005-09-24 Pierrick LE GALL * bug 162 fixed: division by zero when trying to view "all" items in admin/element_set_(global|unit) + + * bug 156 fixed: error when selection is empty was not catched. 2005-09-21 Pierrick LE GALL diff --git a/include/functions.inc.php b/include/functions.inc.php index ae5f46415..0c4e462e9 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -354,15 +354,18 @@ function pwg_log( $file, $category, $picture = '' ) if ($conf['log']) { + $login = ($user['id'] == $conf['guest_id']) + ? 'guest' : addslashes($user['username']); + $query = ' INSERT INTO '.HISTORY_TABLE.' (date,login,IP,file,category,picture) VALUES (NOW(), - \''.(($user['id'] == 2) ? 'guest' : addslashes($user['username'])).'\', + \''.$login.'\', \''.$_SERVER['REMOTE_ADDR'].'\', \''.addslashes($file).'\', - \''.addslashes($category).'\', + \''.addslashes(strip_tags($category)).'\', \''.addslashes($picture).'\') ;'; pwg_query($query); diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index ae5d5ef47..b49533db4 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -339,21 +339,26 @@ function get_html_menu_category($categories) global $page, $lang; $ref_level = 0; - $menu = ' -