? ctools_form_comment_form_alter-1.patch
Index: plugins/content_types/node_context/node_comment_form.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ctools/plugins/content_types/node_context/node_comment_form.inc,v
retrieving revision 1.1.2.1
diff -u -9 -p -r1.1.2.1 node_comment_form.inc
--- plugins/content_types/node_context/node_comment_form.inc	29 Jan 2010 20:18:25 -0000	1.1.2.1
+++ plugins/content_types/node_context/node_comment_form.inc	24 Apr 2010 18:06:42 -0000
@@ -49,22 +49,20 @@ function ctools_node_comment_form_conten
 function ctools_node_comment_form_content_type_edit_form(&$form, &$form_state) {
   // provide a blank form so we have a place to have context setting.
 }
 
 /**
  * Alter the comment form to get a little more control over it.
  */
 function ctools_form_comment_form_alter(&$form, &$form_state) {
   if (!empty($form_state['ctools comment alter'])) {
-    $node =
-    // force the form to post back to wherever we are.
-    $url = parse_url($_GET['q']);
-    $form['#action'] = url($url['path'], array('fragment' => 'comment-form'));
+    // Force the form to post back to wherever we are.
+    $form['#action'] = url($_GET['q'], array('fragment' => 'comment-form'));
     if (empty($form['#submit'])) {
       $form['#submit'] = array('comment_form_submit');
     }
     $form['#submit'][] = 'ctools_node_comment_form_submit';
   }
 }
 
 function ctools_node_comment_form_submit(&$form, &$form_state) {
   $form_state['redirect'][0] = $_GET['q'];
