Browse Source

* Fix issue #39350 : strip extension dot in windows loadknowntypes

Michaël Van Canneyt 3 years ago
parent
commit
25450a99ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-web/src/base/fpmimetypes.pp

+ 1 - 1
packages/fcl-web/src/base/fpmimetypes.pp

@@ -266,7 +266,7 @@ begin
           aType:= Reg.ReadString('Content Type');
           Reg.CloseKey;
           if aType<>'' then
-            AddType(aType,Ext);
+            AddType(aType,Copy(Ext,2,Length(Ext)-1));
           end;
         end;
       Reg.CloseKey;