Skip to content
This repository
Browse code

ENHANCEMENT: Add "jpeg" to list of allowed extensions

.jpeg is the correct extension for these files, and they were being filtered out of the list.
  • Loading branch information...
commit 4fde42f72e4cfbb9df9d3326db8277036a9faaa7 1 parent 31d6070
unclecheese authored August 17, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  forms/HtmlEditorField.php
2  forms/HtmlEditorField.php
@@ -761,7 +761,7 @@ protected function getFiles($parentID = null) {
761 761
 	 * @return Array All extensions which can be handled by the different views.
762 762
 	 */
763 763
 	protected function getAllowedExtensions() {
764  
-		$exts = array('jpg', 'gif', 'png', 'swf');
  764
+		$exts = array('jpg', 'gif', 'png', 'swf','jpeg');
765 765
 		$this->extend('updateAllowedExtensions', $exts);
766 766
 		return $exts;
767 767
 	}

0 notes on commit 4fde42f

Please sign in to comment.
Something went wrong with that request. Please try again.