dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update weblinks in comments from HTTP to HTTPS
[lhc/web/wiklou.git]
/
maintenance
/
dev
/
includes
/
router.php
diff --git
a/maintenance/dev/includes/router.php
b/maintenance/dev/includes/router.php
index
97c8954
..
77b0e61
100644
(file)
--- a/
maintenance/dev/includes/router.php
+++ b/
maintenance/dev/includes/router.php
@@
-1,7
+1,7
@@
<?php
/**
* Router for the php cli-server built-in webserver.
<?php
/**
* Router for the php cli-server built-in webserver.
- * http
://www
.php.net/manual/en/features.commandline.webserver.php
+ * http
s://secure
.php.net/manual/en/features.commandline.webserver.php
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-63,7
+63,8
@@
if ( $ext == 'php' || $ext == 'php5' ) {
return true;
}
$mime = false;
return true;
}
$mime = false;
-$lines = explode( "\n", file_get_contents( "includes/mime.types" ) );
+// Borrow mime type file from MimeAnalyzer
+$lines = explode( "\n", file_get_contents( "includes/libs/mime/mime.types" ) );
foreach ( $lines as $line ) {
$exts = explode( " ", $line );
$mime = array_shift( $exts );
foreach ( $lines as $line ) {
$exts = explode( " ", $line );
$mime = array_shift( $exts );