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:
authorWilliam Desportes <williamdes@wdes.fr>2019-06-12 11:43:15 +0300
committerWilliam Desportes <williamdes@wdes.fr>2019-06-12 11:43:15 +0300
commit4bf8bfcaa16dd90d7b36c2c3f5e2d36c7b249bd2 (patch)
treeb4e2547dc2966a9f3a877cf9037ac9b22ba41aa6 /sql.php
parentec74b3401078aa73a7596c66e90e191262b17bd3 (diff)
Fix broken foreign key links
Fixes: #15225 - Using Command+Click to open in new tab does not work (Firefox/Safari) Fixes: #14270 - Middle-click on foreign key link broken Fixes: #14363 - Broken relational links in tables Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql.php b/sql.php
index 5e73353519..8a5c2cd755 100644
--- a/sql.php
+++ b/sql.php
@@ -13,6 +13,7 @@ use PhpMyAdmin\Response;
use PhpMyAdmin\Sql;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
+use PhpMyAdmin\Core;
/**
* Gets some core libraries
@@ -71,6 +72,10 @@ if (isset($_POST['bkm_fields']['bkm_sql_query'])) {
$sql_query = $_POST['bkm_fields']['bkm_sql_query'];
} elseif (isset($_POST['sql_query'])) {
$sql_query = $_POST['sql_query'];
+} elseif (isset($_GET['sql_query']) && isset($_GET['sql_signature'])) {
+ if (Core::checkSqlQuerySignature($_GET['sql_query'], $_GET['sql_signature'])) {
+ $sql_query = $_GET['sql_query'];
+ }
}
// This one is just to fill $db