diff --git a/lib/session.ts b/lib/session.ts index b6ec7c8..eac565e 100644 --- a/lib/session.ts +++ b/lib/session.ts @@ -60,6 +60,7 @@ import { } from "./types"; import { getRequestOrigin } from "./forwarded"; import * as logger from "./logger"; +import { encodeTag } from "./util"; const VALID_PARAM_TYPES = new Set([ "xsd:int", @@ -216,7 +217,7 @@ export async function inform( for (const e of rpcReq.event) { params.push([ - Path.parse(`Events.${e.replace(/\s+/g, "_")}`), + Path.parse(`Events.${encodeTag(e.replace(/\s+/g, "_"))}`), timestamp, { object: [timestamp, 0],