[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers-public] [PATCH] gsv-eval.pl (find_binary_data_files):
From: |
Bruno Félix Rezende Ribeiro |
Subject: |
[Savannah-hackers-public] [PATCH] gsv-eval.pl (find_binary_data_files): treat XML MIME types as text. |
Date: |
Tue, 22 Sep 2015 23:21:52 -0300 |
This fixes a bug where XML files were regarded as binary data files.
---
gsv-eval.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gsv-eval.pl b/gsv-eval.pl
index 08efe90..08e858a 100755
--- a/gsv-eval.pl
+++ b/gsv-eval.pl
@@ -340,7 +340,7 @@ sub find_binary_data_files
{
@binary_data_files =
sort
- grep { $mimetypes{$_} !~ m;^(text|inode)/; &&
+ grep { $mimetypes{$_} !~ m;(^(text|inode)/|\+xml$|/xml($|-)); &&
!(exists $mimetypes_bin_obj{$mimetypes{$_}}) &&
# Compiled 'info' (from .texi) files are mis-detected
as binary - don't flag them as binary data files.
( ! ( $mimetypes{$_} eq "application/octet-stream"
--
2.1.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-hackers-public] [PATCH] gsv-eval.pl (find_binary_data_files): treat XML MIME types as text.,
Bruno Félix Rezende Ribeiro <=