aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Vote.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-12-20 20:16:06 +0000
committerMario <mario@mariovavti.com>2022-12-20 20:16:06 +0000
commit7dd23085344a93d4fb1b3a9e4a60ca0b4fb78a95 (patch)
tree52c8bebf4841ecb6b2081d93057782c9253de244 /Zotlabs/Module/Vote.php
parent62eee07b6ee7ad7f34dbe7c5080630435acbb0bf (diff)
downloadvolse-hubzilla-7dd23085344a93d4fb1b3a9e4a60ca0b4fb78a95.tar.gz
volse-hubzilla-7dd23085344a93d4fb1b3a9e4a60ca0b4fb78a95.tar.bz2
volse-hubzilla-7dd23085344a93d4fb1b3a9e4a60ca0b4fb78a95.zip
pooll fixes
Diffstat (limited to 'Zotlabs/Module/Vote.php')
-rw-r--r--Zotlabs/Module/Vote.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Module/Vote.php b/Zotlabs/Module/Vote.php
index 4f909d33d..870fd760c 100644
--- a/Zotlabs/Module/Vote.php
+++ b/Zotlabs/Module/Vote.php
@@ -45,9 +45,7 @@ class Vote extends Controller {
if ($obj['oneOf']) {
foreach($obj['oneOf'] as $selection) {
- // logger('selection: ' . $selection);
- // logger('response: ' . $response);
- if($selection['name'] && $selection['name'] === $response) {
+ if($selection['name'] && htmlspecialchars_decode($selection['name']) === $response) {
$valid = true;
}
}
@@ -56,7 +54,7 @@ class Vote extends Controller {
$choices = [];
if ($obj['anyOf']) {
foreach ($obj['anyOf'] as $selection) {
- $choices[] = $selection['name'];
+ $choices[] = htmlspecialchars_decode($selection['name']);
}
foreach ($response as $res) {
if (! in_array($res,$choices)) {