? webform-986802.patch
Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.124.2.115
diff -u -p -r1.124.2.115 webform.module
--- webform.module	1 Apr 2010 02:14:23 -0000	1.124.2.115
+++ webform.module	2 Dec 2010 02:45:32 -0000
@@ -2185,11 +2185,14 @@ function _webform_filter_values($string,
     ),
     'unsafe' => array(
       '%cookie' => $_COOKIE,
-      '%session' => $_SESSION,
       '%post' => $_POST,
       '%request' => $_REQUEST,
     ),
   );
+  // Special handling of session for pressflow.
+  if (isset($_SESSION)) {
+    $special_tokens['unsafe']['%session'] = $_SESSION;
+  }
 
   // User replacements.
   if (!array_key_exists('%username', $replacements['unsafe'])) {
