Page MenuHomePhabricator

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

Authored by epriestley on Feb 12 2019, 4:09 PM.
Tags
None
Referenced Files
F15468751: D20150.diff
Fri, Apr 4, 5:04 AM
F15436076: D20150.id48111.diff
Tue, Mar 25, 11:47 AM
F15431743: D20150.id.diff
Mon, Mar 24, 2:13 PM
F15429892: D20150.id48125.diff
Mon, Mar 24, 4:46 AM
F15427273: D20150.diff
Sun, Mar 23, 1:30 PM
F15421135: D20150.id48125.diff
Fri, Mar 21, 9:14 PM
F15383620: D20150.diff
Fri, Mar 14, 5:23 PM
Unknown Object (File)
Feb 23 2025, 2:48 AM
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.