View Issue Details

IDProjectCategoryView StatusLast Update
0000475fileGeneralpublic2023-08-31 14:32
Reporteradepasquale Assigned To 
Status newResolutionopen 
Product Version5.45 
Summary0000475: Magic for Microsoft HTML Application (HTA)
DescriptionMicrosoft HTML Application (HTA) is a sub-set of HTML.
Figured it made sense to add a specific magic for that "<hta:application>" tag.
Had to use a strength of +50 to prioritize HTA over HTML.
Please close the issue if not interested in making this distinction.

sample.hta: HTML document, ASCII text
sample.hta: Microsoft HTML Application (HTA), ASCII text

TagsNo tags attached.



2023-08-31 14:32


hta-FILE5_45.patch (571 bytes)   
diff --git a/magic/Magdir/sgml b/magic/Magdir/sgml
index fb698a54..e5431d34 100644
--- a/magic/Magdir/sgml
+++ b/magic/Magdir/sgml
@@ -108,6 +108,13 @@
 !:mime	text/html
 !:strength + 15
+# Microsoft HTML Application (HTA)
+0	search/4096/cWt	\<hta:application\ 	Microsoft HTML Application (HTA)
+!:mime	application/hta
+!:ext	hta
+!:strength + 50
 # Extensible markup language (XML), a subset of SGML
 # from Marc Prud'hommeaux (
 0	search/1/cwt	\<?xml			XML document text
hta-FILE5_45.patch (571 bytes)   
sample.hta (169 bytes)   
<title>Sample HTA</title>
<hta:application id="test" />
<script language="vbscript">


<body scroll="no">
sample.hta (169 bytes)   

Issue History

Date Modified Username Field Change
2023-08-31 14:32 adepasquale New Issue
2023-08-31 14:32 adepasquale File Added: hta-FILE5_45.patch
2023-08-31 14:32 adepasquale File Added: sample.hta