Skip to content

Commit

Permalink
Merge branch 'QA_4_8'
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioFauth committed Mar 21, 2019
2 parents 525326b + 9ffda07 commit f009dfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -62,6 +62,7 @@ phpMyAdmin - ChangeLog
- issue Fixed error reporting javascript errors on multi server setup
- issue Fixed wrong property name on TableStructureController
- issue #14811 Fix SHOW FULL TABLES FROM when a table is locked
- issue #14916 Fix bug when creating or editing views

4.8.5 (2019-01-25)
- issue Developer debug data was saved to the PHP error log
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Util.php
Expand Up @@ -1835,6 +1835,7 @@ public static function linkOrButton(
if (($url_length > $GLOBALS['cfg']['LinkLengthLimit'])
|| ! $in_suhosin_limits
|| strpos($url, 'sql_query=') !== false
|| strpos($url, 'view[as]=') !== false
) {
$parts = explode('?', $url, 2);
/*
Expand Down
6 changes: 3 additions & 3 deletions view_create.php
Expand Up @@ -178,7 +178,7 @@
exit;
}

$sql_query = ! empty($_GET['sql_query']) ? $_GET['sql_query'] : '';
$sql_query = ! empty($_POST['sql_query']) ? $_POST['sql_query'] : '';

// prefill values if not already filled from former submission
$view = [
Expand All @@ -193,8 +193,8 @@
'with' => '',
];

if (Core::isValid($_GET['view'], 'array')) {
$view = array_merge($view, $_GET['view']);
if (Core::isValid($_POST['view'], 'array')) {
$view = array_merge($view, $_POST['view']);
}

$url_params['db'] = $GLOBALS['db'];
Expand Down

0 comments on commit f009dfd

Please sign in to comment.