Index: modules/webform/webform.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/webform/webform.module,v
retrieving revision 1.113.2.33
diff -u -r1.113.2.33 webform.module
--- modules/webform/webform.module	30 May 2007 18:36:02 -0000	1.113.2.33
+++ modules/webform/webform.module	4 Jun 2007 00:00:17 -0000
@@ -1410,15 +1410,14 @@
   
   // Check confirmation field to see if redirect should be to another node or a message
   if (valid_url(trim($node->confirmation), true)) {
-    header("Location: ".trim($node->confirmation));
-    exit();
+    return trim($node->confirmation);
   }
   elseif (preg_match('/^internal:/', $node->confirmation)) {
     $path = preg_replace('/^internal:/', '', $node->confirmation);
-    drupal_goto($path, 'sid=' . $sid);
+    return array($path, 'sid=' . $sid);
   }
   else {
-    drupal_goto('node/'.$node->nid.'/done', 'sid=' . $sid);
+    return array('node/'.$node->nid.'/done', 'sid=' . $sid);
   }
 } // end webform_client_form_submit
 
