Add minimal XSS protection to appended string

ChangeLog entry
This commit is contained in:
Marc Delisle 2012-03-31 07:22:51 -04:00
parent eb37c8716d
commit 7983308e8a
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ phpMyAdmin - ChangeLog
+ Patch #3506552 Contest-2: Show index information in the data dictionary
+ Patch #3510656 Contest-1: Ignoring foreign keys while dropping tables
- Bug #3509686 Reverting sort on joined column does not work
+ New transformation: append string
3.5.1.0 (not yet released)
- bug #3510784 [edit] Limit clause ignored when sort order is remembered

View File

@ -17,7 +17,7 @@ function PMA_transformation_text_plain__append($buffer, $options = array(), $met
$options[0] = '';
}
$newtext = $buffer . $options[0]; //just append the option to the original text
$newtext = $buffer . htmlspecialchars($options[0]); //just append the option to the original text
return $newtext;
}