mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 10:29:01 +03:00
Merge pull request #3647 from urbit/m/eyre-binding-restriction
eyre: prevent binding in reserved namespaces
This commit is contained in:
commit
fac890e577
@ -1772,6 +1772,12 @@
|
|||||||
|= [=binding =action]
|
|= [=binding =action]
|
||||||
^- [(list move) server-state]
|
^- [(list move) server-state]
|
||||||
=^ success bindings.state
|
=^ success bindings.state
|
||||||
|
:: prevent binding in reserved namespaces
|
||||||
|
::
|
||||||
|
?: ?| ?=([%'~' *] path.binding) :: eyre
|
||||||
|
?=([%'~_~' *] path.binding) :: runtime
|
||||||
|
==
|
||||||
|
[| bindings.state]
|
||||||
(insert-binding [binding duct action] bindings.state)
|
(insert-binding [binding duct action] bindings.state)
|
||||||
:_ state
|
:_ state
|
||||||
[duct %give %bound success binding]~
|
[duct %give %bound success binding]~
|
||||||
|
Loading…
Reference in New Issue
Block a user