Index: votingapi_views.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/votingapi/votingapi_views.inc,v
retrieving revision 1.11.2.6
diff -u -r1.11.2.6 votingapi_views.inc
--- votingapi_views.inc	30 Mar 2007 15:10:59 -0000	1.11.2.6
+++ votingapi_views.inc	27 Jun 2007 11:41:26 -0000
@@ -89,7 +89,7 @@
           )
         ),
       );
-      $tables['votingapi_vote_'. $vote_tag .'_'. $vote_type] = $table;
+      $tables['votingapi_vote_'. preg_replace('!\W!', '', $vote_tag) .'_'. preg_replace('!\W!', '', $vote_type)] = $table;
 
       $table = array(
         "name" => "votingapi_vote", 
@@ -156,7 +156,7 @@
           ),
         ),
       );
-      $tables['votingapi_vote_'. $vote_tag .'_'. $vote_type . '_current_user'] = $table;
+      $tables['votingapi_vote_'. preg_replace('!\W!', '', $vote_tag) .'_'. preg_replace('!\W!', '', $vote_type) . '_current_user'] = $table;
     }
   }
 
