Index: default_filter/default_filter.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/default_filter/default_filter.module,v
retrieving revision 1.9
diff -u -r1.9 default_filter.module
--- default_filter/default_filter.module	3 Sep 2007 01:21:34 -0000	1.9
+++ default_filter/default_filter.module	5 Sep 2007 15:08:00 -0000
@@ -267,7 +267,6 @@
 
   //Note the CONCAT function. This assures that we don't let users who 
   //belong to some role access filters that belong to some other role.
-  //$format = db_result(db_query('SELECT format_id FROM {default_filters} WHERE CONCAT(format_id, ".", role_id) IN ("' . join('","', $eligible) . '") AND role_id IN ("' . join('","', $roles) . '") AND node_type = "%s" ORDER BY weight ASC LIMIT 1', $type));
-  $format = db_result(db_query('SELECT format_id FROM {default_filters} WHERE CONCAT(format_id, ".", role_id) IN ("' . join('","', $eligible) . '") AND node_type = "%s" ORDER BY weight ASC LIMIT 1', $type));
+  $format = db_result(db_query("SELECT format_id FROM {default_filters} WHERE CONCAT(format_id, CONCAT('.', role_id)) IN ('" . join('\',\'', $eligible) . "') AND node_type = '%s' ORDER BY weight ASC LIMIT 1", $type));
   return $format;
 }
