Rev 1400 | Rev 1410 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1400 | Rev 1404 | ||
---|---|---|---|
Line 1099... | Line 1099... | ||
1099 | $ns = $alt_id->getNamespace(); |
1099 | $ns = $alt_id->getNamespace(); |
1100 | $aid = $alt_id->getId(); |
1100 | $aid = $alt_id->getId(); |
1101 | $aiddesc = $alt_id->getDescription(); |
1101 | $aiddesc = $alt_id->getDescription(); |
1102 | $suffix = $alt_id->getSuffix(); |
1102 | $suffix = $alt_id->getSuffix(); |
1103 | $info = $alt_id->getMoreInfoUrl(); |
1103 | $info = $alt_id->getMoreInfoUrl(); |
- | 1104 | ||
- | 1105 | // Note: ​ is to allow a word-break (see https://stackoverflow.com/questions/8186743/what-is-the-best-way-to-break-html-text-on-slashes) |
|
- | 1106 | // This is important for the very long X.500 DN, e.g. "x500dn:/dc=com/dc=example/cn=oidplus/1.3.6.1.4.1.37476.2.5.2.9.4.1=1494410075/1.3.6.1.4.1.37476.2.5.2.9.4.2=1610822832" |
|
1104 | if ($info) $info = ' <a href="'.$info.'" target="_blank"><img src="img/info.png" style="width:16px;height:16px" alt="'._L('More information').'"></a>'; |
1107 | if ($info) $info = ' <a href="'.$info.'" target="_blank"><img src="img/info.png" style="width:16px;height:16px" alt="'._L('More information').'"></a>'; |
1105 | $out['text'] .= '<tr><td>'.nl2br(htmlentities($ns.':'.$aid)).($suffix ? '<br/><font size="-1">'.htmlentities($suffix).'</font>' : '').'</td><td>'.htmlentities($aiddesc).$info.'</td></tr>'; |
1108 | $out['text'] .= '<tr><td>'.str_replace("/", "/​",htmlentities($ns.':'.$aid)).($suffix ? '<br/><font size="-1">'.htmlentities($suffix).'</font>' : '').'</td><td>'.htmlentities($aiddesc).$info.'</td></tr>'; |
1106 | } |
1109 | } |
1107 | $out['text'] .= '</tbody>'; |
1110 | $out['text'] .= '</tbody>'; |
1108 | $out['text'] .= '</table>'; |
1111 | $out['text'] .= '</table>'; |
1109 | $out['text'] .= '</div></div>'; |
1112 | $out['text'] .= '</div></div>'; |
1110 | } |
1113 | } |