Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dokuwiki/lib/plugins/doodle/doodle_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<?php foreach ($template['doodleData'] as $fullname => $userData) { ?>
<tr>
<td class="rightalign">
<?php $fullname = '<a href="//people.php.net/' . $fullname.'">' .$fullname. '</a>';?>
<?php echo (array_key_exists('editLinks', $userData) ? $userData['editLinks'] : '') . $fullname.$userData['username'] ?>
<?php $link = '<a href="https://people.php.net/' . htmlspecialchars($userData['username']) . '">' . htmlspecialchars($userData['username']) . '</a>';?>
<?php echo (array_key_exists('editLinks', $userData) ? $userData['editLinks'] : '') . $link; ?>
</td>
<?php for ($col = 0; $col < $c; $col++) {
echo $userData['choice'][$col];
Expand Down
4 changes: 2 additions & 2 deletions dokuwiki/lib/plugins/doodle/syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function render($mode, Doku_Renderer $renderer, $data) {
$this->template['count'][$col] = 0;
foreach ($this->doodle as $fullname => $userData) {
if (!empty($userData['username'])) {
$this->template['doodleData']["$fullname"]['username'] = '&nbsp;('.$userData['username'].')';
$this->template['doodleData']["$fullname"]['username'] = $userData['username'];
}
if (in_array($col, $userData['choices'])) {
$timeLoc = strftime($conf['dformat'], $userData['time']); // localized time of vote
Expand Down Expand Up @@ -507,7 +507,7 @@ function getInputTR() {
$TR .= '<td class="rightalign">';
if ($fullname) {
if ($editMode) $TR .= $this->getLang('edit').':&nbsp;';
$TR .= $fullname.'&nbsp;('.$_SERVER['REMOTE_USER'].')';
$TR .= $_SERVER['REMOTE_USER'];
$TR .= '<input type="hidden" name="fullname" value="'.$fullname.'">';
} else {
$TR .= '<input type="text" name="fullname" value="">';
Expand Down