Fix URL-encoding of download params hyperlink

This commit is contained in:
Zaid Abdulla committed 2019-09-16 14:17:27 -07:00
1 parent 3d38de74d7
commit 4bcee572f1
1 file changed
+3 -1
+3 -1
View File
@@ -140,7 +140,9 @@ const component: ClosureComponent = (): Component => {
m( m(
"a.download-csv", "a.download-csv",
{ {
href: `/api/devices/${device["DeviceID.ID"].value[0]}.csv`, href: `/api/devices/${encodeURIComponent(
device["DeviceID.ID"].value[0]
)}.csv`,
download: "", download: "",
style: "float: right;" style: "float: right;"
}, },