Ticket #1485781 (closed Bugs: fixed)
LDAP AddressBook null values in contact fields produce an error
| Reported by: | atuin | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.3-stable |
| Component: | LDAP connection | Version: | 0.2.1 |
| Severity: | minor | Keywords: | ldap addressbook |
| Cc: |
Description
hello (sorry for my bad english)
With extended ldap adressbook,(view http://www.roundcubeforum.net/plug-ins/2292-global-address-book-additional-fields-additional-email-addresses-4.html#post17779)
when we add a contact with null values in fields produce an "value #0 invalid per syntax" error on the ldap server (openldap)
The problem comes when fields in the html pages are left empty, which is normal for this application.
so we changed on /program/include/rcube_ldap.php
$newentry[$fld] = $val;
with
if ($val != "" ) $newentry[$fld] = $val;
Cyril
Change History
Note: See
TracTickets for help on using
tickets.
