mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 19:46:50 +03:00
allow atoms in %hiss requests
gall was checking user vases for ?=([@ ^]) instead of ?=([@ *])
This commit is contained in:
parent
8e35c18724
commit
e59153011d
@ -807,19 +807,19 @@
|
||||
++ ap-move-hiss :: pass %hiss
|
||||
|= {sto/bone vax/vase}
|
||||
^- {(each cove tang) _+>}
|
||||
?. &(?=({p/* q/* r/@ s/^} q.vax) ((sane %tas) r.q.vax))
|
||||
?. &(?=({p/* q/* r/@ s/{p/@ *}} q.vax) ((sane %tas) r.q.vax))
|
||||
=+ args="[%hiss wire (unit knot) mark cage]"
|
||||
:_(+>.$ [%| (ap-suck "hiss: bad hiss ask.{args}")])
|
||||
=^ gaw vel (~(slot wa vel) 15 vax)
|
||||
?. &(?=({p/@ q/^} q.gaw) ((sane %tas) p.q.gaw))
|
||||
?. &(?=({p/@ *} q.gaw) ((sane %tas) p.q.gaw))
|
||||
:_(+>.$ [%| (ap-suck "hiss: malformed cage")])
|
||||
=^ paw vel (~(stop wa vel) 3 gaw)
|
||||
=+ usr=((soft (unit knot)) q.q.vax)
|
||||
?. &(?=(^ usr) ?~(u.usr & ((sane %ta) u.u.usr)))
|
||||
:_(+>.$ [%| (ap-suck "hiss: malformed (unit knot)")])
|
||||
=+ pux=((soft path) p.q.vax)
|
||||
?. &(?=(^ pux) (levy u.pux (sane %ta)))
|
||||
:_(+>.$ [%| (ap-suck "hiss: malformed path")])
|
||||
=^ paw vel (~(stop wa vel) 3 gaw)
|
||||
:_ +>.$
|
||||
:^ %& sto %pass
|
||||
:- [(scot %p q.q.pry) %cay u.pux]
|
||||
|
Loading…
Reference in New Issue
Block a user