mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
Detect and fatal on magic_quotes_gpc
Summary: This is evil, don't run with it enabled. Somehow got enabled on my laptop? Test Plan: Loaded phabricator with magic_quotes_gpc enabled, was rebuffed. Reviewed By: aran Reviewers: jungejason, tuomaspelkonen, aran CC: aran Differential Revision: 184
This commit is contained in:
parent
c2893d8670
commit
5da364f8f9
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
error_reporting(E_ALL | E_STRICT);
|
error_reporting(E_ALL | E_STRICT);
|
||||||
ini_set('memory_limit', -1);
|
ini_set('memory_limit', -1);
|
||||||
|
|
||||||
|
@ -43,6 +44,13 @@ if (!isset($_REQUEST['__path__'])) {
|
||||||
"__path__ is not set. Your rewrite rules are not configured correctly.");
|
"__path__ is not set. Your rewrite rules are not configured correctly.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (get_magic_quotes_gpc()) {
|
||||||
|
phabricator_fatal_config_error(
|
||||||
|
"Your server is configured with PHP 'magic_quotes_gpc' enabled. This ".
|
||||||
|
"feature is 'highly discouraged' by PHP's developers and you must ".
|
||||||
|
"disable it to run Phabricator. Consult the PHP manual for instructions.");
|
||||||
|
}
|
||||||
|
|
||||||
require_once dirname(dirname(__FILE__)).'/conf/__init_conf__.php';
|
require_once dirname(dirname(__FILE__)).'/conf/__init_conf__.php';
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue