From a5950f9ecdb0445d139ae66a5119261ad2f8e5e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 17 Jun 2016 13:05:10 +0200 Subject: [PATCH] Fix link to mariadb explain analyzer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - avoid double urlencoding of the query - properly escape html entities Signed-off-by: Michal Čihař --- libraries/Util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Util.php b/libraries/Util.php index 9048376cd9..e3ce467909 100644 --- a/libraries/Util.php +++ b/libraries/Util.php @@ -1220,10 +1220,10 @@ class Util ) . ']'; $url = 'https://mariadb.org/explain_analyzer/analyze/' . '?client=phpMyAdmin&raw_explain=' - . urlencode(self::_generateRowQueryOutput($sql_query)); + . self::_generateRowQueryOutput($sql_query); $explain_link .= ' [' . self::linkOrButton( - 'url.php?url=' . urlencode($url), + htmlspecialchars('url.php?url=' . urlencode($url)), sprintf(__('Analyze Explain at %s'), 'mariadb.org'), array(), true,