From c6d0f6988e9a7df3b06bf6990712571ebeda8103 Mon Sep 17 00:00:00 2001 From: naderman Date: Tue, 19 Jun 2007 12:36:07 +0000 Subject: [PATCH] - author search should take UTF-8 [Bug #11793] git-svn-id: http://code.phpbb.com/svn/phpbb/trunk@7780 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/search.php b/phpBB/search.php index 4b2563dbe..487411d61 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -32,7 +32,7 @@ $view = request_var('view', ''); $submit = request_var('submit', false); $keywords = request_var('keywords', '', true); $add_keywords = request_var('add_keywords', '', true); -$author = request_var('author', ''); +$author = request_var('author', '', true); $author_id = request_var('author_id', 0); $show_results = ($topic_id) ? 'posts' : request_var('sr', 'posts'); $show_results = ($show_results == 'posts') ? 'posts' : 'topics'; @@ -84,7 +84,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) // egosearch is an author search if ($search_id == 'egosearch') { - $author = $user->data['username']; + $author_id = $user->data['user_id']; } // If we are looking for authors get their ids -- 2.11.4.GIT