Skip to content

Commit

Permalink
Fix survey file download
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgs committed Nov 14, 2023
1 parent 0c7b998 commit 54f46e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion InstanceTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ protected function makeHtmlTable($repeatingFormDetails, $canEdit) {
foreach ($instanceData as $rowValues) {
$html.='<tr>';
foreach ($rowValues as $value) {
$html.="<td>".REDCap::filterHtml($value)."</td>"; // $html.="<td>".htmlspecialchars($value, ENT_QUOTES)."</td>";
$value = str_replace('removed="window.open(','onclick="window.open(',REDCap::filterHtml($value)); // <button removed="window.open( ... >Download</button> file downloads
$html.="<td>$value</td>";
}
$html.='</tr>';
}
Expand Down

0 comments on commit 54f46e8

Please sign in to comment.