From eac4c77c1a87352d90a2ce8e7fa0a4e9a5da74b3 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Wed, 27 Sep 2006 22:09:55 +0000 Subject: [PATCH] Bug fix git-svn-id: file:///home/svn/framework3/trunk@3984 4d416f70-5f16-0410-b530-b9f4589650da --- data/msfweb/app/controllers/application.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/msfweb/app/controllers/application.rb b/data/msfweb/app/controllers/application.rb index f5193ed900..e93376c510 100644 --- a/data/msfweb/app/controllers/application.rb +++ b/data/msfweb/app/controllers/application.rb @@ -10,18 +10,21 @@ class ApplicationController < ActionController::Base end mlist.each do |m| - + if (m.name.downcase.index(terms.downcase)) res << m next end - if (m.desc.downcase.index(terms.downcase)) + if (m.description.downcase.index(terms.downcase)) res << m next end end + + p res.length + res end