Index: trunk/phase3/maintenance/dev/includes/router.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | # PHP webserver doesn't understand. |
64 | 64 | # ;) Nicely enough we just happen to bundle a mime.types file |
65 | 65 | $f = fopen($file, 'rb'); |
66 | | - if ( preg_match( '^text/', $mime ) ) { |
| 66 | + if ( preg_match( '#^text/#', $mime ) ) { |
67 | 67 | # Text should have a charset=UTF-8 (php's webserver does this too) |
68 | 68 | header("Content-Type: $mime; charset=UTF-8"); |
69 | 69 | } else { |