From 9c062f3385551f2b11789d59a51585dc159d07fe Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 24 Sep 2016 16:17:14 +0100 Subject: [PATCH] case-insensitive wiki pages --- ext/wiki/main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/wiki/main.php b/ext/wiki/main.php index 8eb541f0..80837510 100644 --- a/ext/wiki/main.php +++ b/ext/wiki/main.php @@ -226,11 +226,11 @@ class Wiki extends Extension { private function get_page($title, $revision=-1) { global $database; // first try and get the actual page - $row = $database->get_row(" + $row = $database->get_row($database->scoreql_to_sql(" SELECT * FROM wiki_pages - WHERE title LIKE :title - ORDER BY revision DESC", + WHERE SCORE_STRNORM(title) LIKE SCORE_STRNORM(:title) + ORDER BY revision DESC"), array("title"=>$title)); // fall back to wiki:default