Encode event codes containing illegal chars
This commit is contained in:
1 parent
8d11e1cdd9
commit
4cb143cc0a
1 file changed
+2
-1
+2
-1
@@ -60,6 +60,7 @@ import {
|
|||||||
} from "./types";
|
} from "./types";
|
||||||
import { getRequestOrigin } from "./forwarded";
|
import { getRequestOrigin } from "./forwarded";
|
||||||
import * as logger from "./logger";
|
import * as logger from "./logger";
|
||||||
|
import { encodeTag } from "./util";
|
||||||
|
|
||||||
const VALID_PARAM_TYPES = new Set([
|
const VALID_PARAM_TYPES = new Set([
|
||||||
"xsd:int",
|
"xsd:int",
|
||||||
@@ -216,7 +217,7 @@ export async function inform(
|
|||||||
|
|
||||||
for (const e of rpcReq.event) {
|
for (const e of rpcReq.event) {
|
||||||
params.push([
|
params.push([
|
||||||
Path.parse(`Events.${e.replace(/\s+/g, "_")}`),
|
Path.parse(`Events.${encodeTag(e.replace(/\s+/g, "_"))}`),
|
||||||
timestamp,
|
timestamp,
|
||||||
{
|
{
|
||||||
object: [timestamp, 0],
|
object: [timestamp, 0],
|
||||||
|
|||||||
Reference in new issue
Block a user