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
246d6fc
..
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 );
@@
-80,7
+81,7
@@
if ( !$mime ) {
}
}
if ( $mime ) {
}
}
if ( $mime ) {
- # Use custom handling to serve files with a known
mime
type
+ # Use custom handling to serve files with a known
MIME
type
# This way we can serve things like .svg files that the built-in
# PHP webserver doesn't understand.
# ;) Nicely enough we just happen to bundle a mime.types file
# This way we can serve things like .svg files that the built-in
# PHP webserver doesn't understand.
# ;) Nicely enough we just happen to bundle a mime.types file
@@
-98,5
+99,5
@@
if ( $mime ) {
return true;
}
return true;
}
-# Let the php server handle things on it
'
s own otherwise
+# Let the php server handle things on its own otherwise
return false;
return false;