From 4516c98c09ff775892707c3f2b61c857dd82707d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 14 Jul 2023 12:27:39 -0300 Subject: handle special characters in URLs more carefully --- src/util/html.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/util/html.js') diff --git a/src/util/html.js b/src/util/html.js index 1c55fb8c..2db1f2eb 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -132,14 +132,6 @@ export function attributes(attribs) { throw new Error(`Attribute value for ${key} should be primitive or array, got ${typeof val}`); }) .filter(([_key, _val, keep]) => keep) - .map(([key, val]) => { - switch (key) { - case 'href': - return [key, encodeURI(val)]; - default: - return [key, val]; - } - }) .map(([key, val]) => typeof val === 'boolean' ? `${key}` -- cgit 1.3.0-6-gf8a5