@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+8
+8
webroot/index.php
··· 16 16 * limitations under the License. 17 17 */ 18 18 19 + 19 20 error_reporting(E_ALL | E_STRICT); 20 21 ini_set('memory_limit', -1); 21 22 ··· 41 42 if (!isset($_REQUEST['__path__'])) { 42 43 phabricator_fatal_config_error( 43 44 "__path__ is not set. Your rewrite rules are not configured correctly."); 45 + } 46 + 47 + if (get_magic_quotes_gpc()) { 48 + phabricator_fatal_config_error( 49 + "Your server is configured with PHP 'magic_quotes_gpc' enabled. This ". 50 + "feature is 'highly discouraged' by PHP's developers and you must ". 51 + "disable it to run Phabricator. Consult the PHP manual for instructions."); 44 52 } 45 53 46 54 require_once dirname(dirname(__FILE__)).'/conf/__init_conf__.php';