Homec4science

Provide a mechanism for reverisbly decoding arbitrary data for infix URIs

Authored by epriestley <git@epriestley.com> on Mar 20 2012, 03:12.

Description

Provide a mechanism for reverisbly decoding arbitrary data for infix URIs

Summary:
See next diff. In Diffusion, we want to put arbitrary data into the URI and keep it as readable as possible.

Correct phutil_escape_uri()'s handling of slashes for suffix or query parameter use.

Add phutil_escape_uri_path_component() to correctly handle arbitary URI infixes (notably, branch names).

Test Plan: See next diff.

Reviewers: nh, vrana, btrahan

Reviewed By: btrahan

CC: aran, epriestley

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

Details

Committed
epriestley <git@epriestley.com>Mar 20 2012, 03:12
Pushed
aubortMar 17 2017, 12:03
Parents
rPHUdb643ee9f5f5: Return passed value from phlog()
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHUefb6a7d305c0: Provide a mechanism for reverisbly decoding arbitrary data for infix URIs (authored by epriestley <git@epriestley.com>).Mar 20 2012, 03:12