Index: trunk/server/common/oursrc/execsys/mime.types
===================================================================
--- trunk/server/common/oursrc/execsys/mime.types	(revision 1463)
+++ trunk/server/common/oursrc/execsys/mime.types	(revision 1464)
@@ -399,4 +399,5 @@
 image/prs.btif
 image/prs.pti
+image/svg+xml			svg
 image/tiff			tiff tif
 image/vnd.cns.inf2
Index: trunk/server/common/oursrc/execsys/static-cat.c.pre
===================================================================
--- trunk/server/common/oursrc/execsys/static-cat.c.pre	(revision 1463)
+++ trunk/server/common/oursrc/execsys/static-cat.c.pre	(revision 1464)
@@ -336,5 +336,5 @@
 			exit(0);
 		for (j = 0; j < 2 * NEXTS; j += 2) {
-			if (strcmp(map[j], &argv[1][i]) == 0) {
+			if (strcasecmp(map[j], &argv[1][i]) == 0) {
 				content_type = map[j + 1];
 			}
Index: trunk/server/common/oursrc/execsys/upd-execsys
===================================================================
--- trunk/server/common/oursrc/execsys/upd-execsys	(revision 1463)
+++ trunk/server/common/oursrc/execsys/upd-execsys	(revision 1464)
@@ -61,9 +61,11 @@
  avi
  il
- JPG
  xhtml
  svg
  xaml
  xap
+ wav
+ mid
+ midi
 );
 
@@ -77,5 +79,4 @@
 	foreach my $ext (split " ", $exts) {
 		$map{$ext} = $type;
-		$map{uc($ext)} = $type;
 	}
 }
@@ -89,8 +90,8 @@
 foreach my $ext (@dynamic, @static) {
 	print CONF <<END
-<Files *.$ext>
+<FilesMatch "(?i)\\.$ext\$">
 	SetHandler cgi-script
 	Options +ExecCGI
-</Files>
+</FilesMatch>
 
 END
Index: trunk/server/common/patches/httpd-suexec-scripts.patch
===================================================================
--- trunk/server/common/patches/httpd-suexec-scripts.patch	(revision 1463)
+++ trunk/server/common/patches/httpd-suexec-scripts.patch	(revision 1464)
@@ -73,5 +73,5 @@
  
      /* variable name is */
-@@ -245,9 +250,67 @@
+@@ -245,9 +250,69 @@
      environ = cleanenv;
  }
@@ -108,9 +108,11 @@
 +    "avi",
 +    "il",
-+    "JPG",
 +    "xhtml",
 +    "svg",
 +    "xaml",
 +    "xap",
++    "wav",
++    "mid",
++    "midi",
 +    NULL
 +};
@@ -122,5 +124,5 @@
 +    if (extension == NULL) return 0;
 +    for (p = static_extensions; *p; ++p) {
-+        if (strcmp(extension + 1, *p) == 0) return 1;
++        if (strcasecmp(extension + 1, *p) == 0) return 1;
 +    }
 +    return 0;
