mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +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]
|
||||
^- [(list move) server-state]
|
||||
=^ success bindings.state
|
||||
:: prevent binding in reserved namespaces
|
||||
::
|
||||
?: ?| ?=([%'~' *] path.binding) :: eyre
|
||||
?=([%'~_~' *] path.binding) :: runtime
|
||||
==
|
||||
[| bindings.state]
|
||||
(insert-binding [binding duct action] bindings.state)
|
||||
:_ state
|
||||
[duct %give %bound success binding]~
|
||||
|
Loading…
Reference in New Issue
Block a user