Index: cas.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cas/cas.module,v
retrieving revision 1.56.2.9
diff -u -p -w -r1.56.2.9 cas.module
--- cas.module	29 Mar 2010 15:03:14 -0000	1.56.2.9
+++ cas.module	14 Jul 2010 03:39:43 -0000
@@ -1008,11 +1008,7 @@ function _cas_force_login() {
   if (base_path() .'cron.php' == $_SERVER['PHP_SELF'] || base_path() .'xmlrpc.php' == $_SERVER['PHP_SELF']) return FALSE;
   
  // Drush
-  if (stristr($_SERVER['SCRIPT_FILENAME'], 'drush')) {
-    return FALSE;
-  }
-  // Drush
-  if (stristr($_SERVER['argv'][0], 'drush')) {
+  if (function_exists('drush_verify_cli') && drush_verify_cli()) {
     return FALSE;
   }
   
