Index: panels.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/panels.module,v
retrieving revision 1.27
diff -u -p -r1.27 panels.module
--- panels.module	2 Sep 2008 21:24:34 -0000	1.27
+++ panels.module	1 Oct 2008 19:51:57 -0000
@@ -579,9 +579,7 @@ function panels_load_displays($dids) {
     return $displays;
   }
 
-  $subs = implode(', ', array_fill(0, count($dids), '%d'));
-
-  $result = db_query("SELECT * FROM {panels_display} WHERE did IN ($subs)", $dids);
+  $result = db_query("SELECT * FROM {panels_display} WHERE did IN (".  db_placeholders($dids) .")", $dids);
 
   while ($obj = db_fetch_array($result)) {
     $display = new panels_display();
@@ -604,7 +602,7 @@ function panels_load_displays($dids) {
     $function($content, $layout, $settings);
   }
 
-  $result = db_query("SELECT * FROM {panels_pane} WHERE did IN ($subs) ORDER BY did, panel, position", $dids);
+  $result = db_query("SELECT * FROM {panels_pane} WHERE did IN (". db_placeholders($dids) .") ORDER BY did, panel, position", $dids);
 
   while ($pane = db_fetch_object($result)) {
     $pane->configuration = unserialize($pane->configuration);
Index: content_types/vocabulary_terms.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/content_types/vocabulary_terms.inc,v
retrieving revision 1.3
diff -u -p -r1.3 vocabulary_terms.inc
--- content_types/vocabulary_terms.inc	19 Aug 2008 07:04:10 -0000	1.3
+++ content_types/vocabulary_terms.inc	1 Oct 2008 19:51:57 -0000
@@ -31,7 +31,7 @@ function panels_content_vocabulary_terms
     $terms = taxonomy_get_tree($vocab->vid, 0, -1, $max_depth);
     $items = array();
     foreach ($terms as $term) {
-      $items[] = l(check_plain($term->name), 'taxonomy/term/'. $term->tid);
+      $items[] = l($term->name, 'taxonomy/term/'. $term->tid);
     }
     $output = theme('item_list', $items);
   }
Index: includes/callbacks.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/includes/callbacks.inc,v
retrieving revision 1.2
diff -u -p -r1.2 callbacks.inc
--- includes/callbacks.inc	6 Aug 2008 00:24:46 -0000	1.2
+++ includes/callbacks.inc	1 Oct 2008 19:51:57 -0000
@@ -17,14 +17,11 @@ function panels_node_autocomplete($strin
       $match = preg_match('/^nid: (\d+)/', $string, $preg_matches);
     }
     if ($match) {
-      $arg = $preg_matches[1];
-      $where = "n.nid = %d";
+      $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, u.name FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE n.nid = %d"), $preg_matches[1], 0, 10);
     }
     else {
-      $arg = $string;
-      $where = "LOWER(title) LIKE LOWER('%%%s%%')";
+      $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, u.name FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE LOWER(title) LIKE LOWER('%%%s%%')"), $string, 0, 10);
     }
-    $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, u.name FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE $where"), $arg, 0, 10);
 
     $matches = array();
     while ($node = db_fetch_object($result)) {
Index: panels_mini/panels_mini.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/panels_mini/panels_mini.module,v
retrieving revision 1.4
diff -u -p -r1.4 panels_mini.module
--- panels_mini/panels_mini.module	22 Aug 2008 22:37:18 -0000	1.4
+++ panels_mini/panels_mini.module	1 Oct 2008 19:51:58 -0000
@@ -283,12 +283,11 @@ function panels_mini_load($pid) {
   }
 
   if (!is_numeric($pid)) {
-    $where = "name = '%s'";
+    $panel_mini = db_fetch_object(db_query("SELECT * FROM {panels_mini} WHERE name = '%s'", $pid));
   }
   else {
-    $where = 'pid = %d';
+    $panel_mini = db_fetch_object(db_query("SELECT * FROM {panels_mini} WHERE pid = %d", $pid));
   }
-  $panel_mini = db_fetch_object(db_query("SELECT * FROM {panels_mini} WHERE $where", $pid));
   if (!$panel_mini) {
     $defaults = panels_mini_default_panels();
     if (isset($defaults[$pid])) {
Index: panels_page/panels_page.read.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/panels_page/panels_page.read.inc,v
retrieving revision 1.11.2.1
diff -u -p -r1.11.2.1 panels_page.read.inc
--- panels_page/panels_page.read.inc	20 Sep 2008 04:22:37 -0000	1.11.2.1
+++ panels_page/panels_page.read.inc	1 Oct 2008 19:51:58 -0000
@@ -75,12 +75,11 @@ function panels_page_load($id, $load_dis
   }
 
   if (!is_numeric($id)) {
-    $where = "name = '%s'";
+    $page = db_fetch_object(db_query("SELECT * FROM {panels_page} WHERE name = '%s'", $id));
   }
   else {
-    $where = 'pid = %d';
+    $page = db_fetch_object(db_query("SELECT * FROM {panels_page} WHERE pid = %d", $id));
   }
-  $page = db_fetch_object(db_query("SELECT * FROM {panels_page} WHERE $where", $id));
   if (!$page) {
     $defaults = panels_page_default_panels();
     if (isset($defaults[$id])) {
