Fix #15119 - Uninterpreted HTML on Settings->Export page

Fixes: #15119
Pull-request: #15132
Closes: #15134
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-04-05 10:04:26 +02:00
commit 9c6e2b812d
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ class Descriptions
return __('Maximum execution time');
case 'Export_lock_tables_name':
return sprintf(
__('Use %s statement'), '<code>LOCK TABLES</code>'
__('Use %s statement'), htmlspecialchars('<code>LOCK TABLES</code>')
);
case 'Export_asfile_name':
return __('Save as file');

View File

@ -216,7 +216,7 @@ class FormDisplayTemplate
$htmlOutput = '<tr' . $tr_class . '>';
$htmlOutput .= '<th>';
$htmlOutput .= '<label for="' . htmlspecialchars($path) . '">' . $name
$htmlOutput .= '<label for="' . htmlspecialchars($path) . '">' . htmlspecialchars_decode($name)
. '</label>';
if (! empty($opts['doc'])) {