Index: pathauto_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_node.inc,v
retrieving revision 1.15
diff -u -p -r1.15 pathauto_node.inc
--- pathauto_node.inc	10 Nov 2005 00:24:15 -0000	1.15
+++ pathauto_node.inc	8 Dec 2005 11:30:56 -0000
@@ -131,7 +131,7 @@ function node_get_placeholders($node) {
   $placeholders[t('[type]')] = pathauto_cleanstring(node_get_name($node));
   
   // Then the slightly less simple stuff
-  $result = db_query("SELECT name FROM {users} WHERE uid='%u'", $node->uid);
+  $result = db_query("SELECT name FROM {users} WHERE uid=%d", $node->uid);
   $userinfo = db_fetch_object($result);
   $placeholders[t('[user]')] = pathauto_cleanstring($userinfo->name);
   
@@ -262,9 +262,9 @@ function node_pathauto_page() {
 
   $query = 'SELECT n.nid FROM {url_alias} a '.
     "INNER JOIN {node} n ON a.src = CONCAT('node/', n.nid)  ".
-    "WHERE n.status = 1 AND a.dst LIKE '$prefix%' ".
+    "WHERE n.status = 1 AND a.dst LIKE '%s%%' ".
     'ORDER BY n.sticky DESC, n.created DESC';
-  $result = pager_query(db_rewrite_sql($query), variable_get('default_nodes_main', 10));
+  $result = pager_query(db_rewrite_sql($query, $prefix), variable_get('default_nodes_main', 10));
 
   $output = '';
   while ($node = db_fetch_object($result)) {
@@ -277,4 +277,4 @@ function node_pathauto_page() {
   return $output;
 }
 
-?>
\ No newline at end of file
+?>
