Homec4science

Add `urisprintf()` for encoded printing of URIs

Authored by epriestley <git@epriestley.com> on Nov 9 2013, 03:40.

Description

Add urisprintf() for encoded printing of URIs

Summary:
Ref T1049. This is primarily to enable us to do a reasonable job of variable replacement in "Request URI" Harbormaster build steps. For example, the user will enter:

http://jenkins.mycompany.com/?diff=${buildable.name}

...which we'll transform to:

http://jenkins.mycompany.com/?diff=%s

...and then build correctly.

Test Plan: Unit tests.

Reviewers: btrahan, hach-que

Reviewed By: hach-que

CC: zeeg, aran

Maniphest Tasks: T1049

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

Details

Committed
epriestley <git@epriestley.com>Nov 9 2013, 03:40
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU509703fa2313: Allow using numbers and HTML fragments in translations together
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU1ffb66347246: Add `urisprintf()` for encoded printing of URIs (authored by epriestley <git@epriestley.com>).Nov 9 2013, 03:40