Page MenuHomePhabricator

Allow underscores to appear in Harbormaster variable names
ClosedPublic

Authored by epriestley on Sep 7 2018, 3:07 PM.
Tags
None
Referenced Files
F19898360: D19645.diff
Sun, Mar 29, 12:07 PM
F19803875: D19645.id46956.diff
Mar 2 2026, 2:50 AM
F19555140: D19645.id.diff
Jan 30 2026, 9:09 AM
F19545303: D19645.diff
Jan 24 2026, 2:29 AM
F19303048: D19645.id.diff
Dec 23 2025, 4:56 PM
F19249982: D19645.diff
Dec 22 2025, 7:19 AM
F18866655: D19645.id.diff
Nov 3 2025, 6:30 PM
F18832444: D19645.id46956.diff
Oct 25 2025, 9:54 PM
Subscribers
Restricted Owners Package

Details

Summary

See PHI859. Ref T13195. The regexp for replacing variables currently does not include underscores.

Include underscores.

I also made a note in T13088: we should (almost certainly?) throw immediately if you try to pass a bogus variable name as a custom parameter, but this is a slightly larger change.

Test Plan
  • Made an "http request" build plan with ?x=${initiator.phid}&y={$some_variable}.
  • Added some_variable as a parameter to the parameter collection.
  • Before patch: initiator.phid was replaced, but some_variable was not.
  • After patch: both variables are replaced.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Sep 7 2018, 3:07 PM
This revision is now accepted and ready to land.Sep 7 2018, 3:56 PM
This revision was automatically updated to reflect the committed changes.