[geeklog-cvs] Auth_Enterprise/Server AEServerProviderFactory.class.php,1.3,1.4

tony at iowaoutdoors.org tony at iowaoutdoors.org
Thu Jul 1 14:43:25 EDT 2004


Update of /var/cvs/Auth_Enterprise/Server
In directory www:/tmp/cvs-serv20802

Modified Files:
	AEServerProviderFactory.class.php 
Log Message:
Now throws exceptions if we get an empty appID or a provider that doesn't exist

Index: AEServerProviderFactory.class.php
===================================================================
RCS file: /var/cvs/Auth_Enterprise/Server/AEServerProviderFactory.class.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AEServerProviderFactory.class.php	19 Jun 2004 20:25:22 -0000	1.3
--- AEServerProviderFactory.class.php	1 Jul 2004 18:43:23 -0000	1.4
***************
*** 51,56 ****
--- 51,66 ----
          global $gConf;
          
+         // Ensure we got an application ID
+         if (empty($appId)) {
+             throw new AENoAppId();
+         }
+         
          $provider = $gConf['providerMapping'][$appId];
          
+         // Make sure the application is associated with a provider
+         if (empty($provider)) {
+             throw new AENoProvider("Unable to find a provider for $appId");
+         }
+         
          $fileName = 'Auth_Enterprise/Server/providers/' . $provider . '.class.php';
          




More information about the geeklog-cvs mailing list