? php53-fix.patch
Index: securepages.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/securepages/securepages.module,v
retrieving revision 1.15.2.24
diff -u -r1.15.2.24 securepages.module
--- securepages.module	3 Nov 2009 05:50:58 -0000	1.15.2.24
+++ securepages.module	20 Dec 2009 13:09:13 -0000
@@ -20,7 +20,7 @@
     }
     exit();
   }
-  
+
   if (!variable_get('securepages_enable', 0) || basename($_SERVER['PHP_SELF']) != 'index.php') {
     return;
   }
@@ -120,7 +120,7 @@
 /**
  * Implementation of hook_link_alter().
  */
-function securepages_link_alter(&$links, &$node) {
+function securepages_link_alter(&$links, $node) {
   if (!variable_get('securepages_enable', 0)) {
     return;
   }
@@ -172,7 +172,7 @@
  */
 function securepages_goto($secure) {
   global $base_root;
-  
+
   $_SESSION['securepages_redirect'] = TRUE;
   $path = !empty($_REQUEST['q']) ? $_REQUEST['q'] : '';
   $query = count($_GET) > 1 ? securepages_get_query($_GET) : NULL;
@@ -189,7 +189,7 @@
     bootstrap_invoke_all('exit');
   }
   header('Location: '. $url);
-  
+
   // Make sure the cache is clear so that the next page will not pick up a cached version.
   cache_clear_all($base_root . request_uri(), 'cache_page');
   exit();
@@ -444,22 +444,22 @@
  */
 function securepages_can_alter_url($url) {
   global $base_path, $base_url;
-  
+
   @extract(@parse_url($url));
-  
+
   // If there is no scheme then it is a relative url and can be altered
   if (!isset($scheme) && $base_path == '/') {
     return TRUE;
   }
-  
+
   // If the host names are not the same then don't allow altering of the path.
   if (isset($host) && strtolower($host) != strtolower($_SERVER['HTTP_HOST'])) {
     return FALSE;
   }
-  
+
   if (strlen($base_path) > 1 && substr($base_url, -1) != substr($path, 1, strlen($base_path))) {
     return FALSE;
   }
-  
+
   return TRUE;
 }
\ No newline at end of file
