Changeset 1464 for trunk/server
- Timestamp:
- Feb 12, 2010, 3:52:35 AM (15 years ago)
- Location:
- trunk/server/common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/common/oursrc/execsys/mime.types
r945 r1464 399 399 image/prs.btif 400 400 image/prs.pti 401 image/svg+xml svg 401 402 image/tiff tiff tif 402 403 image/vnd.cns.inf2 -
trunk/server/common/oursrc/execsys/static-cat.c.pre
r104 r1464 336 336 exit(0); 337 337 for (j = 0; j < 2 * NEXTS; j += 2) { 338 if (strc mp(map[j], &argv[1][i]) == 0) {338 if (strcasecmp(map[j], &argv[1][i]) == 0) { 339 339 content_type = map[j + 1]; 340 340 } -
trunk/server/common/oursrc/execsys/upd-execsys
r1358 r1464 61 61 avi 62 62 il 63 JPG64 63 xhtml 65 64 svg 66 65 xaml 67 66 xap 67 wav 68 mid 69 midi 68 70 ); 69 71 … … 77 79 foreach my $ext (split " ", $exts) { 78 80 $map{$ext} = $type; 79 $map{uc($ext)} = $type;80 81 } 81 82 } … … 89 90 foreach my $ext (@dynamic, @static) { 90 91 print CONF <<END 91 <Files *.$ext>92 <FilesMatch "(?i)\\.$ext\$"> 92 93 SetHandler cgi-script 93 94 Options +ExecCGI 94 </Files >95 </FilesMatch> 95 96 96 97 END -
trunk/server/common/patches/httpd-suexec-scripts.patch
r1355 r1464 73 73 74 74 /* variable name is */ 75 @@ -245,9 +250,6 7@@75 @@ -245,9 +250,69 @@ 76 76 environ = cleanenv; 77 77 } … … 108 108 + "avi", 109 109 + "il", 110 + "JPG",111 110 + "xhtml", 112 111 + "svg", 113 112 + "xaml", 114 113 + "xap", 114 + "wav", 115 + "mid", 116 + "midi", 115 117 + NULL 116 118 +}; … … 122 124 + if (extension == NULL) return 0; 123 125 + for (p = static_extensions; *p; ++p) { 124 + if (strc mp(extension + 1, *p) == 0) return 1;126 + if (strcasecmp(extension + 1, *p) == 0) return 1; 125 127 + } 126 128 + return 0;
Note: See TracChangeset
for help on using the changeset viewer.