bug #1339184 (for bookmark insertion)
This commit is contained in:
@@ -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:
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user