Page MenuHomePhabricator

Provide PhabricatorEnv::isSelfURI to test if a URI points at the current install
ClosedPublic

Authored by epriestley on Mar 16 2017, 1:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 1:26 AM
Unknown Object (File)
Thu, Apr 11, 8:54 AM
Unknown Object (File)
Tue, Apr 9, 5:11 AM
Unknown Object (File)
Tue, Apr 9, 4:47 AM
Unknown Object (File)
Sun, Apr 7, 8:27 AM
Unknown Object (File)
Tue, Apr 2, 5:24 AM
Unknown Object (File)
Mar 6 2024, 1:08 AM
Unknown Object (File)
Feb 14 2024, 4:08 PM
Subscribers
None

Details

Summary

Ref T5378. This repackages an existing check to see if a URI is a URI for the current install into a more reasonable form.

In an upcoming change, I'll use this new check to test whether http://example.whatever.com/T123 is a link to a task on the current install or not.

Test Plan

This stuff has good test coverage already; added some more.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 16 2017, 3:33 AM

This doesn't really do anything on its own and I'm not sure what the fate of T5378 is, but the code is much cleaner and this change has a pile of unit tests, so I'm going to land it on quality grounds even though it doesn't really do anything for us yet.

This revision was automatically updated to reflect the committed changes.