Page MenuHomePhabricator

Fix reading of the request path when running the PHP builtin webserver
ClosedPublic

Authored by epriestley on Jan 11 2021, 6:34 PM.
Tags
None
Referenced Files
F14399820: D21506.diff
Sun, Dec 22, 5:49 PM
Unknown Object (File)
Tue, Dec 10, 8:57 AM
Unknown Object (File)
Thu, Nov 28, 11:52 AM
Unknown Object (File)
Sun, Nov 24, 2:49 PM
Unknown Object (File)
Sat, Nov 23, 3:02 PM
Unknown Object (File)
Oct 29 2024, 9:06 AM
Unknown Object (File)
Sep 24 2024, 3:38 AM
Unknown Object (File)
Sep 18 2024, 11:09 PM
Subscribers
None

Details

Summary

Ref T13575. Since PHP builtin webserver support was added, the pathway for parsing request parameters became more complex. We now rebuild "$_REQUEST" later, and this rebuild will destroy any mutations made to it here, so the assignment to __path__ is lost.

Instead of "validating" the request path, make this method "read" the request path and store it explicitly, so it will survive any later request mutations.

Test Plan
  • Submitted any POST form while running Phabricator under the builtin PHP webserver. Old behavior was an error when accessing __path__; new behavior is a working application.
  • Loaded normal pages, etc.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable