Homec4science

Fix uri generation when provided relative path

Authored by Nick Harper <nharper@fb.com> on Apr 2 2013, 00:09.

Description

Fix uri generation when provided relative path

Summary:
If setPath is called on a uri object like
$uri = id(new PhutilURI('foo.example'))->setPath('bar'), the uri generated
by the __toString method does not put a slash between the domain and the path,
resulting in foo.examplebar instead of foo.example/bar.

Test Plan: arc unit

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5527

Details

Committed
Nick Harper <nharper@fb.com>Apr 2 2013, 00:09
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUcd18134951c3: add Filesystem::writeFileIfChanged
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Harper <nharper@fb.com> committed rPHUfcc8bd48cf49: Fix uri generation when provided relative path (authored by Nick Harper <nharper@fb.com>).Apr 2 2013, 00:09