diff --git a/lib/http-routes/schemas/create-call.js b/lib/http-routes/schemas/create-call.js index ff9314aa..a36ebbe4 100644 --- a/lib/http-routes/schemas/create-call.js +++ b/lib/http-routes/schemas/create-call.js @@ -116,12 +116,9 @@ const customSanitizeFunction = (value) => { /* trims characters at the beginning and at the end of a string */ value = value.trim(); - /* We don't escape URLs but verify them via new URL */ + /* Verify strings including 'http' via new URL */ if (value.includes('http')) { value = new URL(value).toString(); - } else { - /* replaces <, >, &, ', " and / with their corresponding HTML entities */ - value = escape(value); } } } catch (error) {