mirror of
https://github.com/matrix-construct/construct
synced 2024-06-09 05:29:00 +02:00
ircd:Ⓜ️:event::conforms: Add missing origin conditions.
This commit is contained in:
parent
35a18366b4
commit
629617deb9
|
@ -249,8 +249,10 @@ ircd::m::event::conforms::conforms(const event &e)
|
|||
if(empty(json::get<"origin"_>(e)))
|
||||
set(MISSING_ORIGIN);
|
||||
|
||||
//TODO: XXX
|
||||
if((false))
|
||||
if(json::get<"origin"_>(e).size() > event::ORIGIN_MAX_SIZE)
|
||||
set(INVALID_ORIGIN);
|
||||
|
||||
if(!rfc3986::valid_remote(std::nothrow, json::get<"origin"_>(e)))
|
||||
set(INVALID_ORIGIN);
|
||||
|
||||
if(empty(json::get<"signatures"_>(e)))
|
||||
|
|
Loading…
Reference in a new issue