@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.

Implement PhutilRequest parser

Summary:
If D6277 is the way to go, then this will be it's implementation.

Depends on D6277

Test Plan: Keep using the site

Reviewers: epriestley

CC: aran, Korvin

Maniphest Tasks: T3432

Differential Revision: https://secure.phabricator.com/D6278

authored by

Gareth Evans and committed by
epriestley
e40f0e13 933d45d5

+8 -1
+1 -1
src/aphront/configuration/AphrontDefaultApplicationConfiguration.php
··· 83 83 84 84 public function buildRequest() { 85 85 $request = new AphrontRequest($this->getHost(), $this->getPath()); 86 - $request->setRequestData($_GET + $_POST); 86 + $request->setRequestData($_POST + $_GET); 87 87 $request->setApplicationConfiguration($this); 88 88 return $request; 89 89 }
+7
webroot/index.php
··· 34 34 $host = AphrontRequest::getHTTPHeader('Host'); 35 35 $path = $_REQUEST['__path__']; 36 36 37 + $parser = new PhutilQueryStringParser(); 38 + $_GET = $parser->parseQueryString( 39 + isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : ""); 40 + $_POST = $parser->parseQueryString( 41 + (string)file_get_contents('php://input')); 42 + $_REQUEST = $_POST + $_GET; 43 + 37 44 switch ($host) { 38 45 default: 39 46 $config_key = 'aphront.default-application-configuration-class';