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
Merge "Convert SpecialPrefixIndex to class HTMLForm"
[lhc/web/wiklou.git]
/
maintenance
/
dev
/
includes
/
router.php
diff --git
a/maintenance/dev/includes/router.php
b/maintenance/dev/includes/router.php
index
cdef7e0
..
9917a4f
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
@@
-54,13
+54,7
@@
if ( !is_readable( $file ) ) {
}
$ext = pathinfo( $file, PATHINFO_EXTENSION );
if ( $ext == 'php' || $ext == 'php5' ) {
}
$ext = pathinfo( $file, PATHINFO_EXTENSION );
if ( $ext == 'php' || $ext == 'php5' ) {
- # Execute php files
- # We use require and return true here because when you return false
- # the php webserver will discard post data and things like login
- # will not function in the dev environment.
- require $file;
-
- return true;
+ return false;
}
$mime = false;
// Borrow mime type file from MimeAnalyzer
}
$mime = false;
// Borrow mime type file from MimeAnalyzer