Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1403 → Rev 1404

/trunk/includes/classes/OIDplusObject.class.php
149,9 → 149,7
 
$oid_at_sysid = '1.3.6.1.4.1.37476.2.5.2.9.4.1';
$oid_at_objhash = '1.3.6.1.4.1.37476.2.5.2.9.4.2';
$dn = '/dc=com/dc=example/cn=oidplus/'."\n".
$oid_at_sysid.'='.$sysid.'/'."\n".
$oid_at_objhash.'='.$objhash;
$dn = '/dc=com/dc=example/cn=oidplus/'.$oid_at_sysid.'='.$sysid.'/'.$oid_at_objhash.'='.$objhash;
 
$ids[] = new OIDplusAltId('x500dn', $dn, _L('OIDplus Information Object X.500 DN'));
}
/trunk/plugins/viathinksoft/publicPages/000_objects/OIDplusPagePublicObjects.class.php
1101,8 → 1101,11
$aiddesc = $alt_id->getDescription();
$suffix = $alt_id->getSuffix();
$info = $alt_id->getMoreInfoUrl();
 
// Note: ​ is to allow a word-break (see https://stackoverflow.com/questions/8186743/what-is-the-best-way-to-break-html-text-on-slashes)
// 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"
if ($info) $info = ' <a href="'.$info.'" target="_blank"><img src="img/info.png" style="width:16px;height:16px" alt="'._L('More information').'"></a>';
$out['text'] .= '<tr><td>'.nl2br(htmlentities($ns.':'.$aid)).($suffix ? '<br/><font size="-1">'.htmlentities($suffix).'</font>' : '').'</td><td>'.htmlentities($aiddesc).$info.'</td></tr>';
$out['text'] .= '<tr><td>'.str_replace("/", "/&#8203;",htmlentities($ns.':'.$aid)).($suffix ? '<br/><font size="-1">'.htmlentities($suffix).'</font>' : '').'</td><td>'.htmlentities($aiddesc).$info.'</td></tr>';
}
$out['text'] .= '</tbody>';
$out['text'] .= '</table>';