bug #1339184 (for bookmark insertion)

This commit is contained in:
Marc Delisle
2005-11-09 13:30:17 +00:00
parent 267674f962
commit 79c5414fe3
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2005-11-09 Marc Delisle <lem9@users.sourceforge.net>
* pdf_pages.php: bug #1245891, too large scaling in PDF schema
* libraries/bookmark.lib.php: bug #1339184 (for bookmark insertion)
2005-11-09 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* server_databases.php, mysql_charsets-lib.php:

View File

@@ -166,7 +166,7 @@ function PMA_addBookmarks($fields, $cfgBookmark, $all_users = false)
global $dbh;
$query = 'INSERT INTO ' . PMA_backquote($cfgBookmark['db']) . '.' . PMA_backquote($cfgBookmark['table'])
. ' (id, dbase, user, query, label) VALUES (\'\', \'' . PMA_sqlAddslashes($fields['dbase']) . '\', \'' . ($all_users ? '' : PMA_sqlAddslashes($fields['user'])) . '\', \'' . PMA_sqlAddslashes(urldecode($fields['query'])) . '\', \'' . PMA_sqlAddslashes($fields['label']) . '\')';
. ' (id, dbase, user, query, label) VALUES (NULL, \'' . PMA_sqlAddslashes($fields['dbase']) . '\', \'' . ($all_users ? '' : PMA_sqlAddslashes($fields['user'])) . '\', \'' . PMA_sqlAddslashes(urldecode($fields['query'])) . '\', \'' . PMA_sqlAddslashes($fields['label']) . '\')';
$result = PMA_DBI_query($query, $dbh);
return TRUE;