practically, sufficient for keys to be owned by same domain as actor.
the url scheme doesn't matter, and need not match. problem identified by eta.
This commit is contained in:
parent
54fd484558
commit
97b9634a9e
10
fun.go
10
fun.go
|
@ -694,13 +694,9 @@ func savingthrow(keyname string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func keymatch(keyname string, actor string) string {
|
func keymatch(keyname string, actor string) string {
|
||||||
hash := strings.IndexByte(keyname, '#')
|
origin := originate(actor)
|
||||||
if hash == -1 {
|
if origin == originate(keyname) {
|
||||||
hash = len(keyname)
|
return origin
|
||||||
}
|
|
||||||
owner := keyname[0:hash]
|
|
||||||
if owner == actor {
|
|
||||||
return originate(actor)
|
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue