Print Page | Close Window

Search function

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2838
Printed Date: 03 April 2026 at 5:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Search function
Posted By: wyntuition
Subject: Search function
Date Posted: 19 May 2003 at 8:54am

I am having strange results with the search function.  We have a forum topic called "passwords".  When searching the forum topics for 'password' it does not find any matches.  The word 'passwords?' is also in the body of a reply in that topic, and searching bodies for "password" does not find anything. 

The search function will find other words, just not password.  Any ideas?

Wyn




Replies:
Posted By: WebWiz-Bruce
Date Posted: 19 May 2003 at 9:15am

You didn't say which version you are using, but I have just tested this with the latest version with a topic called 'passwords' containing the text 'passwords' and no matter if I searched on topic subject or within the message itself, by putting in either 'passwords' or 'password' returned the topic in the results.

I also did a search on this forum for 'passwords' and this topic was sucessfully found in the search.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: wyntuition
Date Posted: 19 May 2003 at 9:35am

I can't find the version number, but we downloaded it about a month ago and it's using the access 2000 database. 

Is it possible for some variable named password in the code messing it up?  Rather strange...

Thanks very much,

Wyn



Posted By: WebWiz-Bruce
Date Posted: 19 May 2003 at 9:41am
The version number is displayed at the bottom of every page in the forum next to the link back to web wiz guide.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: rpex
Date Posted: 19 September 2003 at 3:51am

Hello

there is a problem in the search engine. Some words are translated between user-input and storage in the database. look at the code below:

'Get rid of malicous code in the message
strInputEntry = Replace(strInputEntry, "script", "script", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "SCRIPT", "SCRIPT", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "Script", "Script", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "script", "Script", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "object", "object", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "OBJECT", "OBJECT", 1, -1, 0)

... an so on

deleteing this code will be a solution but is also a security problem.

Example: The Word 'Script" will be translated to 'Script' and saved into the database. the search engine does not take note of this modification, so the word will be not found.

Solution: Translate the serach-string before searching the database.

 



Posted By: WebWiz-Bruce
Date Posted: 19 September 2003 at 4:12am

If you look closly at the search file it also uses the same filters so that the data stored in the database and the search keywords enterd both match as both are filtered and encoded in the same way.

Changing what you have done above can cousre the search function not to run correctly.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net