Skip to content

Commit

Permalink
Minor deprecation warning fix in Zend_Ldap. (#1013)
Browse files Browse the repository at this point in the history
This fixes a minor deprecation warning caused by Zend_Ldap attempting to str_replace() on null, for plugins adding LDAP support to Omeka Classic via the Zend libraries.
  • Loading branch information
kloor committed Nov 28, 2023
1 parent c763d3e commit 6927f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/Zend/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ public function bind($username = null, $password = null)

// Security check: remove null bytes in password
// @see https://net.educause.edu/ir/library/pdf/csd4875.pdf
$password = str_replace("\0", '', $password);
$password = str_replace("\0", '', (string) $password);

if ($username === null) {
$username = $this->_getUsername();
Expand Down

0 comments on commit 6927f22

Please sign in to comment.