eniocarboni / p7m

p7m è uno script per la gestione dei file con firma digitale nel formato CADES
https://quoll.it/firma-digitale-p7m-come-estrarre-il-contenuto/
GNU General Public License v3.0
48 stars 5 forks source link

mime types in /etc/mime.types parse problems #25

Closed eniocarboni closed 2 years ago

eniocarboni commented 2 years ago

Checking the mime-type in the /etc/mime-types file is not done precisely. For example for application/xml it also returns the file lines for application/xml-dtd and application/xml-external-parsed-entity. So depending on how they are sorted in the file they could cause errors to the mktemp program. The check should be revised.