Escape HTML markup in transformation wrapper
...in case content type is html. Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
8f3ee9f9db
commit
09a427b288
@ -112,7 +112,11 @@ if (isset($ct) && ! empty($ct)) {
|
||||
PMA_downloadHeader($cn, $mime_type);
|
||||
|
||||
if (! isset($resize)) {
|
||||
echo $row[$transform_key];
|
||||
if (stripos($mime_type, 'html') === false) {
|
||||
echo $row[$transform_key];
|
||||
} else {
|
||||
echo htmlspecialchars($row[$transform_key]);
|
||||
}
|
||||
} else {
|
||||
// if image_*__inline.inc.php finds that we can resize,
|
||||
// it sets $resize to jpeg or png
|
||||
|
||||
Loading…
Reference in New Issue
Block a user