Merge branch 'MAINT_3_3_10' into QA_3_3
This commit is contained in:
@@ -263,11 +263,10 @@ function Swekey_login($input_name, $input_go)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strstr($_SERVER['QUERY_STRING'],'session_to_unset') != false)
|
if (!empty($_GET['session_to_unset']))
|
||||||
{
|
{
|
||||||
parse_str($_SERVER['QUERY_STRING']);
|
|
||||||
session_write_close();
|
session_write_close();
|
||||||
session_id($session_to_unset);
|
session_id($_GET['session_to_unset']);
|
||||||
session_start();
|
session_start();
|
||||||
$_SESSION = array();
|
$_SESSION = array();
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
@@ -1220,7 +1220,7 @@ function PMA_displayTableBody(&$dt_result, &$is_display, $map, $analyzed_sql) {
|
|||||||
if ($GLOBALS['cfgRelation']['mimework'] && $GLOBALS['cfg']['BrowseMIME']) {
|
if ($GLOBALS['cfgRelation']['mimework'] && $GLOBALS['cfg']['BrowseMIME']) {
|
||||||
|
|
||||||
if (isset($GLOBALS['mime_map'][$meta->name]['mimetype']) && isset($GLOBALS['mime_map'][$meta->name]['transformation']) && !empty($GLOBALS['mime_map'][$meta->name]['transformation'])) {
|
if (isset($GLOBALS['mime_map'][$meta->name]['mimetype']) && isset($GLOBALS['mime_map'][$meta->name]['transformation']) && !empty($GLOBALS['mime_map'][$meta->name]['transformation'])) {
|
||||||
$include_file = $GLOBALS['mime_map'][$meta->name]['transformation'];
|
$include_file = PMA_securePath($GLOBALS['mime_map'][$meta->name]['transformation']);
|
||||||
|
|
||||||
if (file_exists('./libraries/transformations/' . $include_file)) {
|
if (file_exists('./libraries/transformations/' . $include_file)) {
|
||||||
$transformfunction_name = str_replace('.inc.php', '', $GLOBALS['mime_map'][$meta->name]['transformation']);
|
$transformfunction_name = str_replace('.inc.php', '', $GLOBALS['mime_map'][$meta->name]['transformation']);
|
||||||
|
@@ -624,7 +624,7 @@ function PMA_createTargetTables($src_db, $trg_db, $src_link, $trg_link, &$uncomm
|
|||||||
$Create_Query = PMA_DBI_fetch_value("SHOW CREATE TABLE " . PMA_backquote($src_db) . '.' . PMA_backquote($uncommon_tables[$table_index]), 0, 1, $src_link);
|
$Create_Query = PMA_DBI_fetch_value("SHOW CREATE TABLE " . PMA_backquote($src_db) . '.' . PMA_backquote($uncommon_tables[$table_index]), 0, 1, $src_link);
|
||||||
|
|
||||||
// Replace the src table name with a `dbname`.`tablename`
|
// Replace the src table name with a `dbname`.`tablename`
|
||||||
$Create_Table_Query = preg_replace('/' . PMA_backquote($uncommon_tables[$table_index]) . '/',
|
$Create_Table_Query = preg_replace('/' . preg_quote(PMA_backquote($uncommon_tables[$table_index]), '/') . '/',
|
||||||
PMA_backquote($trg_db) . '.' .PMA_backquote($uncommon_tables[$table_index]),
|
PMA_backquote($trg_db) . '.' .PMA_backquote($uncommon_tables[$table_index]),
|
||||||
$Create_Query,
|
$Create_Query,
|
||||||
$limit = 1
|
$limit = 1
|
||||||
|
@@ -286,7 +286,7 @@ class ConfigFile
|
|||||||
if ($this->getServerCount() > 0) {
|
if ($this->getServerCount() > 0) {
|
||||||
$ret .= "/* Servers configuration */$crlf\$i = 0;" . $crlf . $crlf;
|
$ret .= "/* Servers configuration */$crlf\$i = 0;" . $crlf . $crlf;
|
||||||
foreach ($c['Servers'] as $id => $server) {
|
foreach ($c['Servers'] as $id => $server) {
|
||||||
$ret .= '/* Server: ' . strtr($this->getServerName($id), '*/', '-') . " [$id] */" . $crlf
|
$ret .= '/* Server: ' . strtr($this->getServerName($id) . " [$id] ", '*/', '-') . "*/" . $crlf
|
||||||
. '$i++;' . $crlf;
|
. '$i++;' . $crlf;
|
||||||
foreach ($server as $k => $v) {
|
foreach ($server as $k => $v) {
|
||||||
$k = preg_replace('/[^A-Za-z0-9_]/', '_', $k);
|
$k = preg_replace('/[^A-Za-z0-9_]/', '_', $k);
|
||||||
|
Reference in New Issue
Block a user