diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-08-13 05:03:48 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-08-13 05:03:48 +0300 |
commit | 224b2245a7bcf2aaeaa38b7e502d6224504dc4b9 (patch) | |
tree | 1384aadd06e3f2b66072bbda220794f1057aa23c /db_designer.php | |
parent | c1e45a02a1eb5c1e4a00e7c2ce99b747a304f8a8 (diff) |
FIx bug - Use control link for db operation related to configuration storage
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'db_designer.php')
-rw-r--r-- | db_designer.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/db_designer.php b/db_designer.php index 00731675c4..bfb029eb33 100644 --- a/db_designer.php +++ b/db_designer.php @@ -98,7 +98,9 @@ if (isset($_REQUEST['operation'])) { . '` WHERE ' . PMA_Util::backquote('username') . ' = "' . $cfgDesigner['user'] . '"'; - $orig_data = $GLOBALS['dbi']->fetchSingleRow($orig_data_query); + $orig_data = $GLOBALS['dbi']->fetchSingleRow( + $orig_data_query, $GLOBALS['controllink'] + ); $success = false; @@ -116,7 +118,7 @@ if (isset($_REQUEST['operation'])) { . $orig_data . '\' WHERE ' . PMA_Util::backquote('username') . ' = "' . $cfgDesigner['user'] . '";'; - $success = $GLOBALS['dbi']->query($save_query); + $success = PMA_queryAsControlUser($save_query); } else { $save_data = array($_REQUEST['index'] => $_REQUEST['value']); @@ -126,7 +128,7 @@ if (isset($_REQUEST['operation'])) { . '", \'' . PMA_Util::sqlAddSlashes(json_encode($save_data)) . '\');'; - $success = $GLOBALS['dbi']->query($query); + $success = PMA_queryAsControlUser($query); } $response->isSuccess($success); |