forked from Qortal/qortal-ui
Merge pull request #285 from QuickMythril/voting-fix
Fix voting on poll names with special characters
This commit is contained in:
commit
1027252c1a
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user