mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-04 02:04:12 +00:00
escape tag data in listen (#1510)
This commit is contained in:
@@ -155,6 +155,13 @@ class TaskListen extends Task {
|
|||||||
const ci = this.nested ? this.parentTask.sd.callInfo : cs.callInfo.toJSON();
|
const ci = this.nested ? this.parentTask.sd.callInfo : cs.callInfo.toJSON();
|
||||||
if (this._ignoreCustomerData) {
|
if (this._ignoreCustomerData) {
|
||||||
delete ci.customerData;
|
delete ci.customerData;
|
||||||
|
} else {
|
||||||
|
for (const key in ci.customerData) {
|
||||||
|
if (ci.customerData.hasOwnProperty(key)) {
|
||||||
|
const value = ci.customerData[key];
|
||||||
|
ci.customerData[key] = typeof value === 'string' ? escapeString(value) : value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const metadata = Object.assign(
|
const metadata = Object.assign(
|
||||||
{sampleRate: this.sampleRate, mixType: this.mixType},
|
{sampleRate: this.sampleRate, mixType: this.mixType},
|
||||||
|
|||||||
Reference in New Issue
Block a user