From ef9dffd055fc629a7c83d37d3b860c9c1f3c2fef Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 24 Jun 2015 17:30:39 +0000 Subject: [PATCH] Use updated URL for MariaDB Explain analyzer, and encode semicolon in URL parameter. See http://www.heidisql.com/forum.php?t=18677 --- source/dbconnection.pas | 2 +- source/helpers.pas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 6e164402..1ce61858 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -3952,7 +3952,7 @@ begin Results.Next; end; Raw := Raw + CRLF; - URL := 'http://mariadb.org/explain_analyzer/api/1/?raw_explain='+EncodeURLParam(Raw)+'&client='+APPNAME; + URL := 'https://mariadb.org/explain_analyzer/analyze/?raw_explain='+EncodeURLParam(Raw)+'&client='+APPNAME; ShellExec(URL); end; diff --git a/source/helpers.pas b/source/helpers.pas index 0677c2af..3273ff22 100644 --- a/source/helpers.pas +++ b/source/helpers.pas @@ -502,7 +502,7 @@ function EncodeURLParam(const Value: String): String; var c: Char; const - UnsafeChars: String = '*<>#%"{}|\^[]`?&+'; + UnsafeChars: String = '*<>#%"{}|\^[]`?&+;'; begin // Encode critical chars in url parameter Result := '';