From af86a9399306fe2d64e4f9f455a6e44cb6162fac Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 29 Apr 2015 08:55:48 +0100 Subject: [PATCH] app/XML files are OK here also --- lib/get-branch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/get-branch.php b/lib/get-branch.php index 3a06f3f..95ce162 100644 --- a/lib/get-branch.php +++ b/lib/get-branch.php @@ -196,7 +196,7 @@ if ($_SESSION['githubDiff']) { if (array_search($fileExt,array("gif","jpg","jpeg","png"))!==false) {$finfo = "image";}; if (array_search($fileExt,array("doc","docx","ppt","rtf","pdf","zip","tar","gz","swf","asx","asf","midi","mp3","wav","aiff","mov","qt","wmv","mp4","odt","odg","odp"))!==false) {$finfo = "other";}; } - if (strpos($finfo,"text")===0 || strpos($finfo,"empty")!==false) { + if (strpos($finfo,"text")===0 || strpos($finfo, "application/xml")===0 || strpos($finfo,"empty")!==false) { $contents = str_replace("\r","",$contents); }; // Establish the blob SHA contents and push name, SHA and type into 3 arrays