Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-01-07 13:33:27 +0300
committerMichal Čihař <michal@cihar.com>2016-01-07 13:33:27 +0300
commitf22ea96616d5c24e98b2e51f3d42c2f9e820c618 (patch)
tree646a420673e9d92a736a571123ed6e26b988b2fd /view_create.php
parentbc849a41e5f018897761849cb9dbf856b6bf64ea (diff)
parent6de48ce8c180b426a5781e9388e49ce1a4ea51ff (diff)
Merge branch 'QA_4_5'
Diffstat (limited to 'view_create.php')
-rw-r--r--view_create.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/view_create.php b/view_create.php
index 607e52b3a1..7494a6985b 100644
--- a/view_create.php
+++ b/view_create.php
@@ -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'])) {