From e94c006f1f4f8c6d8dfe7e7cf90db8070f5c43fc Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Fri, 31 May 2019 13:27:10 +0200 Subject: [PATCH] update valuestore browser --- public_html/valuestore/browse.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public_html/valuestore/browse.php b/public_html/valuestore/browse.php index a56a9260..6cda243e 100644 --- a/public_html/valuestore/browse.php +++ b/public_html/valuestore/browse.php @@ -120,11 +120,11 @@ if(is_array($aData) && count($aData)){ // $sTable.='<tr>'; foreach ($aRow as $sKey=>$sValue){ // $sTable.='<td class="'.$sKey.'"><a href="'.$sUrl.'">'.$sValue.'</a></td>'; - $sOnclick=strstr($sValue, '"') - ? '' - : 'onclick="$(\'#eFilter\').val(\''.$sValue.'\');filterTable();" title="click to filter by ['.$sValue.']"' + $sLabel=strstr($sValue, '"') + ? htmlentities($sValue) + : '<a href="#" onclick="$(\'#eFilter\').val(\''.$sValue.'\');filterTable();" title="click to filter by ['.$sValue.']">'.htmlentities($sValue).'</a>' ; - $sTable.='<td class="'.$sKey.'" '.$sOnclick.'>'.htmlentities($sValue).'</td>'."\n"; + $sTable.='<td class="'.$sKey.'" '.$sOnclick.'>'.$sLabel.'</td>'."\n"; } $sTable.='<td>' // . '<button onclick="location.href=\''.$sItemUrl.'&action=get\'">View</button>' -- GitLab