Merge branch 'QA_4_5'

This commit is contained in:
Michal Čihař 2016-01-07 11:33:27 +01:00
commit f22ea96616
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,7 @@ phpMyAdmin - ChangeLog
- issue #11798 Fix handling of databases with dot in a name
- issue #11820 Fix hiding of page content behind menu
- issue #11780 FROM clause not generated after loading search bookmark
- issue #11826 Fix creating/editing VIEW with DEFINER containing special chars
4.5.3.1 (2015-12-25)
- issue #11774 Undefined offset 2

View File

@ -57,7 +57,9 @@ if (isset($_REQUEST['createview']) || isset($_REQUEST['alterview'])) {
}
if (! empty($_REQUEST['view']['definer'])) {
$sql_query .= $sep . ' DEFINER = ' . $_REQUEST['view']['definer'];
$arr = explode('@', $_REQUEST['view']['definer']);
$sql_query .= $sep . 'DEFINER=' . PMA_Util::backquote($arr[0]);
$sql_query .= '@' . PMA_Util::backquote($arr[1]) . ' ';
}
if (isset($_REQUEST['view']['sql_security'])) {