Navigation Menu

Skip to content

Commit

Permalink
[jan] Fix parsing GETACL responses from RFC 4314 capable IMAP servers…
Browse files Browse the repository at this point in the history
… (Bug #14466).
  • Loading branch information
yunosh committed Sep 15, 2016
1 parent 130f087 commit 1f19690
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions framework/Imap_Client/lib/Horde/Imap/Client/Data/Acl.php
Expand Up @@ -78,12 +78,20 @@ protected function _normalize()
* to handle these rights when dealing with RFC 2086 servers since
* we are abstracting out use of ACL_CREATE/ACL_DELETE to their
* component RFC 4314 rights. */
foreach ($this->_virtual as $key => $val) {
foreach ($val as $right) {
if ($this[$right]) {
foreach (array_keys($this->_virtual) as $virtual) {
unset($this[$virtual]);
}
return;
}
}
}
foreach ($this->_virtual as $key => $val) {
if ($this[$key]) {
unset($this[$key]);
if (!$this[reset($val)]) {
$this->_rights = array_unique(array_merge($this->_rights, $val));
}
$this->_rights = array_unique(array_merge($this->_rights, $val));
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions framework/Imap_Client/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Fix parsing GETACL responses from RFC 4314 capable IMAP servers (Bug #14466).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -3050,7 +3050,7 @@
<date>2016-09-01</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Fix parsing GETACL responses from RFC 4314 capable IMAP servers (Bug #14466).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 1f19690

Please sign in to comment.