4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

Fix voting on poll names with special characters

This commit is contained in:
QuickMythril 2024-04-20 02:00:27 -04:00
parent 2059bf666a
commit 512af47b0c

View File

@ -1556,7 +1556,7 @@ class WebBrowser extends LitElement {
try {
pollInfo = await parentEpml.request("apiCall", {
type: "api",
url: `/polls/${pollName}`,
url: `/polls/${encodeURIComponent(pollName)}`,
})
} catch (error) {
const errorMsg = (error && error.message) || 'Poll not found'