Skip to content

Commit

Permalink
[jan] Fix approximate search operator (Leandro Damascena <leandro.dam…
Browse files Browse the repository at this point in the history
…ascena@gmail.com>, Bug #9094).
  • Loading branch information
yunosh committed Mar 26, 2014
1 parent 1fbcd0f commit 6a6f2a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/Ldap/lib/Horde/Ldap.php
Expand Up @@ -1486,7 +1486,7 @@ public static function buildClause($lhs, $op, $rhs, $params = array())
return sprintf('(|(%s=%s*)(%s=* %s*))', $lhs, self::quote($rhs), $lhs, self::quote($rhs));
}
if (!empty($params['approximate'])) {
return sprintf('(%s=~%s)', $lhs, self::quote($rhs));
return sprintf('(%s~=%s)', $lhs, self::quote($rhs));
}
return sprintf('(%s=*%s*)', $lhs, self::quote($rhs));

Expand Down
4 changes: 2 additions & 2 deletions framework/Ldap/package.xml
Expand Up @@ -28,7 +28,7 @@
</stability>
<license uri="http://opensource.org/licenses/lgpl-3.0.html">LGPL-3.0</license>
<notes>
*
* [jan] Fix approximate search operator (Leandro Damascena &lt;leandro.damascena@gmail.com&gt;, Bug #9094).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -402,7 +402,7 @@
<date>2013-10-28</date>
<license uri="http://opensource.org/licenses/lgpl-3.0.html">LGPL-3.0</license>
<notes>
*
* [jan] Fix approximate search operator (Leandro Damascena &lt;leandro.damascena@gmail.com&gt;, Bug #9094).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 6a6f2a6

Please sign in to comment.