Page MenuHomePhabricator

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

Authored by epriestley on Feb 12 2019, 4:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 10:39 PM
Unknown Object (File)
Tue, Apr 23, 6:32 PM
Unknown Object (File)
Tue, Apr 16, 4:56 AM
Unknown Object (File)
Thu, Apr 11, 7:36 AM
Unknown Object (File)
Sat, Apr 6, 3:11 PM
Unknown Object (File)
Wed, Apr 3, 12:00 PM
Unknown Object (File)
Tue, Apr 2, 3:21 AM
Unknown Object (File)
Mar 15 2024, 11:16 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
Branch
uri2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21954
Build 29979: Run Core Tests
Build 29978: arc lint + arc unit

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.