From 05dedabae5fec9b2979758d41cf2d22a252767d3 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Fri, 24 Jul 2009 17:29:36 -0400 Subject: [PATCH] don't check permissions when filling the api cache. it can cause an infinite loop because listApps checks permissions which means going through transparent auth, which means calling listApps... --- framework/Core/lib/Horde/Registry.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 8db52caf8..7ad033ed7 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -342,8 +342,7 @@ class Horde_Registry $this->_cache['api'] = $this->_cache['type'] = array(); - $apps = $this->listApps($status); - foreach ($apps as $app) { + foreach (array_keys($this->applications) as $app) { $_services = $_types = null; $api = $this->get('fileroot', $app) . '/lib/api.php'; if (is_readable($api)) { -- 2.11.0