Index: trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
===================================================================
--- trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php	(revision 347)
+++ trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php	(revision 348)
@@ -250,10 +250,20 @@
 	$location = wp_sanitize_redirect($location);
 
-	if ( $is_IIS ) {
-		header("Refresh: 0;url=$location");
-	} else {
-		if ( php_sapi_name() != 'cgi-fcgi' )
-			status_header($status); // This causes problems on IIS and some FastCGI setups
-		header("Location: $location");
+	if (!headers_sent()) {
+		ob_end_clean();
+		if ( $is_IIS ) {
+			header("Refresh: 0;url=$location");
+		} else {
+			if ( php_sapi_name() != 'cgi-fcgi' )
+				status_header($status); // This causes problems on IIS and some FastCGI setups
+			header("Location: $location");
+		}
+	} else {  // force redirect 
+		echo ("<HTML>");
+		echo("<META http-equiv=\"Refresh\" content=\"0;url=$location\">");
+		echo ("<BODY onload=\"try {self.location.href='$location' } catch(e) {}\">");
+		printf(__("If the page does not automatically reload, please click <a href='%s'>here</a>","xpressme"),$location);
+		echo ("</BODY>");
+		echo ("</HTML>");
 	}
 }
