File tree 6 files changed +191
-152
lines changed
6 files changed +191
-152
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -51,3 +51,26 @@ diff -ur Magdir.orig/securitycerts Magdir/securitycerts
51
51
0 belong 0xedfeedfe Sun 'jks' Java Keystore File data
52
52
+
53
53
+ 0 string \0volume_key volume_key escrow packet
54
+ diff --git a/magic/Magdir/sgml b/magic/Magdir/sgml
55
+ --- Magdir.orig/sgml
56
+ +++ Magdir/sgml
57
+ @@ -1,16 +1,17 @@
58
+
59
+ #------------------------------------------------------------------------------
60
+ - # $File: sgml,v 1.48 2023/01/18 16:10:21 christos Exp $
61
+ + # $File: sgml,v 1.49 2023/08/05 14:34:47 christos Exp $
62
+ # Type: SVG Vectorial Graphics
63
+ # From: Noel Torres <tecnico@ejerciciosresueltos.com>
64
+ - 0 string \<?xml\ version=
65
+ + 0 string/bt \<?xml\ version=
66
+ >14 regex ['"\ \t]*[0-9.]+['"\ \t]*
67
+ >>19 search/4096 \<svg SVG Scalable Vector Graphics image
68
+ + !:strength +50
69
+ !:mime image/svg+xml
70
+ !:ext svg
71
+ >>19 search/4096 \<gnc-v2 GnuCash file
72
+ !:mime application/x-gnucash
73
+ - 0 string \<svg SVG Scalable Vector Graphics image
74
+ + 0 string/bt \<svg SVG Scalable Vector Graphics image
75
+ !:mime image/svg+xml
76
+ !:ext svg
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug GH-11891: fileinfo returns text/xml for some svg files
3
+ --EXTENSIONS--
4
+ fileinfo
5
+ --FILE--
6
+ <?php
7
+ var_dump (
8
+ (new \finfo (\FILEINFO_MIME_TYPE ))->file (
9
+ __DIR__ . '/bug-gh11891.svg ' ,
10
+ ),
11
+ );
12
+ ?>
13
+ --EXPECT--
14
+ string(13) "image/svg+xml"
Original file line number Diff line number Diff line change @@ -35130,14 +35130,15 @@
35130
35130
# $File: sgml,v 1.46 2022/08/16 11:16:39 christos Exp $
35131
35131
# Type: SVG Vectorial Graphics
35132
35132
# From: Noel Torres <tecnico@ejerciciosresueltos.com>
35133
- 0 string \<?xml\ version=
35133
+ 0 string/bt \<?xml\ version=
35134
35134
>14 regex ['"\ \t]*[0-9.]+['"\ \t]*
35135
35135
>>19 search/4096 \<svg SVG Scalable Vector Graphics image
35136
+ !:strength +50
35136
35137
!:mime image/svg+xml
35137
35138
!:ext svg
35138
35139
>>19 search/4096 \<gnc-v2 GnuCash file
35139
35140
!:mime application/x-gnucash
35140
- 0 string \<svg SVG Scalable Vector Graphics image
35141
+ 0 string/bt \<svg SVG Scalable Vector Graphics image
35141
35142
!:mime image/svg+xml
35142
35143
!:ext svg
35143
35144
Original file line number Diff line number Diff line change @@ -35130,14 +35130,15 @@
35130
35130
# $File: sgml,v 1.46 2022/08/16 11:16:39 christos Exp $
35131
35131
# Type: SVG Vectorial Graphics
35132
35132
# From: Noel Torres <tecnico@ejerciciosresueltos.com>
35133
- 0 string \<?xml\ version=
35133
+ 0 string/bt \<?xml\ version=
35134
35134
>14 regex ['"\ \t]*[0-9.]+['"\ \t]*
35135
35135
>>19 search/4096 \<svg SVG Scalable Vector Graphics image
35136
+ !:strength +50
35136
35137
!:mime image/svg+xml
35137
35138
!:ext svg
35138
35139
>>19 search/4096 \<gnc-v2 GnuCash file
35139
35140
!:mime application/x-gnucash
35140
- 0 string \<svg SVG Scalable Vector Graphics image
35141
+ 0 string/bt \<svg SVG Scalable Vector Graphics image
35141
35142
!:mime image/svg+xml
35142
35143
!:ext svg
35143
35144
You can’t perform that action at this time.
0 commit comments