Page MenuHomePhabricator

Replace "getRequestURI()->setQueryParams(array())" with "getPath()"
ClosedPublic

Authored by epriestley on Feb 12 2019, 4:09 PM.
Tags
None
Referenced Files
F19097377: D20150.id.diff
Dec 4 2025, 1:16 PM
F18849959: D20150.id.diff
Oct 30 2025, 1:29 PM
F18831957: D20150.id.diff
Oct 25 2025, 5:42 PM
F18773660: D20150.diff
Oct 9 2025, 11:40 AM
F18751112: D20150.diff
Oct 4 2025, 9:47 AM
F18748806: D20150.id.diff
Oct 4 2025, 12:52 AM
F18718230: D20150.id48125.diff
Sep 29 2025, 3:22 PM
F18686654: D20150.id.diff
Sep 26 2025, 1:15 PM
Subscribers
None

Details

Summary

Ref T13250. A handful of callsites are doing getRequestURI() + setQueryParams(array()) to get a bare request path.

They can just use getPath() instead.

Test Plan

See inlines.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/aphront/response/AphrontAjaxResponse.php
34–51

Test plan: viewed a revision in Differential, opened DarkConsole, saw the Ajax "request" tabs populate on the left.

src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php
14

Test plan: viewed /chatlog/channel/1/, which hits this code before 404'ing.

src/applications/metamta/applicationpanel/PhabricatorMetaMTAApplicationEmailPanel.php
57

Test plan: added and removed application email addresses for Maniphest.

src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
34

Test plan: added and removed account email addresses.

src/applications/transactions/editengine/PhabricatorEditEngine.php
1282

Test plan: edited a task.

This revision is now accepted and ready to land.Feb 12 2019, 7:29 PM
This revision was automatically updated to reflect the committed changes.