summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/title.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/title.module b/modules/title.module
index 45fe9e284..e109a1851 100644
--- a/modules/title.module
+++ b/modules/title.module
@@ -30,7 +30,7 @@ function title_page() {
if (db_num_rows($result) == 0) {
// No node with exact title found, try substring.
- $result = db_query("SELECT n.*, u.name, u.uid FROM {node} n INNER JOIN {users} u ON n.uid = u.uid WHERE n.title LIKE '%". check_query($title) ."%' AND n.status = 1 ORDER BY n.created DESC");
+ $result = db_query("SELECT n.*, u.name, u.uid FROM {node} n INNER JOIN {users} u ON n.uid = u.uid WHERE n.title LIKE '%%%s%%' AND n.status = 1 ORDER BY n.created DESC", $title);
}
if (db_num_rows($result) == 0 && module_exist("search")) {