Reports : better handling of JavaScript URIs in reports tables.

skala
jkbockstael 14 years ago
parent 0b039a754b
commit 6083e222ca
  1. 5
      main/reports/reports.php

@ -173,7 +173,12 @@ if ($_REQUEST['format'] == 'html' || $_REQUEST['format'] == 'directlink') {
for ($i = 0; $i<$nfields; $i++)
if (!$columns_islink[$i]){ // ignore links
if ($columns_link[$i] != '') // link is defined
if (substr($columns_link[$i],0,10) == 'javascript') {
echo '<td><a href="#" onclick="'.$row[$columns_link[$i]].'">'.$row[$i].'</a></td>';
}
else {
echo '<td><a href="'.$row[$columns_link[$i]].'">'.$row[$i].'</a></td>';
}
else
echo '<td>'.$row[$i].'</td>';
}

Loading…
Cancel
Save