Fix regression (rfe #1672 MIME types should be lower case)

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2015-06-03 13:26:03 +05:30
parent 36f4a22e13
commit 4ebc479d2e
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@
&& ($mime_map[$columnMeta['Field']]['mimetype'] == str_replace('/', '_', $mimetype))
? 'selected ' : '');?>
<option value="<?php echo str_replace('/', '_', $mimetype)?>" <?php echo $checked; ?>>
<?php echo htmlspecialchars($mimetype); ?>
<?php echo htmlspecialchars(strtolower($mimetype)); ?>
</option>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -12,9 +12,10 @@
$tooltip = PMA_getTransformationDescription(
$available_mime[$type . '_file'][$mimekey], false
);
$parts = explode(":", $transform);
$name = PMA_getTransformationName(
$available_mime[$type . '_file'][$mimekey]
) . ' (' . $transform . ')';
) . ' (' . strtolower($parts[0]) . ":" . $parts[1] . ')';
?>
<option value="<?php echo $available_mime[$type . '_file'][$mimekey]; ?>"
<?php echo $checked; ?>