Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2010-09-12 17:02:42 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2010-09-12 17:02:42 (GMT)
commit6a14f913b92efdf48eb53e9d2f44c76528270099 (patch)
tree53f09a9133d70c08141c846d990ec49ba1604117
parent01c9ccd1dee4c639d68e8447bb11d1b3ecfe4ae1 (diff)
Fix LIKE search by nicks
-rwxr-xr-xcgi/search.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/search.pl b/cgi/search.pl
index c5f235c..be75e70 100755
--- a/cgi/search.pl
+++ b/cgi/search.pl
@@ -96,7 +96,7 @@ if (length($nick) or length($qs)){
if (length $nick){
push @sql_conds, '(nick = ? OR nick LIKE ?)';
- push @args, $nick, "% $nick";
+ push @args, $nick, "%$nick%";
}
if (length $qs) {
push @sql_conds, 'line LIKE ? AND nick != \'\'';