Merge remote-tracking branch 'origin/QA_4_5' into QA_4_5

This commit is contained in:
Weblate 2016-01-07 11:33:44 +01:00
commit be9236b088
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,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

@ -58,7 +58,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'])) {