mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
naive: validate proxy in from is one of proxy:naive
This commit is contained in:
parent
00334d582e
commit
c150da0372
@ -57,13 +57,13 @@
|
||||
::
|
||||
++ from
|
||||
|= params=(map @t json)
|
||||
^- (unit [ship @t])
|
||||
^- (unit [ship proxy:naive])
|
||||
?~ from=(~(get by params) 'from') ~
|
||||
=, dejs-soft:format
|
||||
%. u.from
|
||||
%- ot
|
||||
:~ ['ship' (su ;~(pfix sig fed:ag))]
|
||||
['proxy' so]
|
||||
['proxy' (cu proxy:naive so)]
|
||||
==
|
||||
--
|
||||
::
|
||||
|
Loading…
Reference in New Issue
Block a user