Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

+ ( ) cause internal server error in xvatoria search script

please advise how can i keep this from happening http://616.org/
0
sdland1234
Asked:
sdland1234
  • 4
  • 3
1 Solution
 
maneshrCommented:
pl explain and provide the exact URL.
0
 
sdland1234Author Commented:
if you use ++ or ( in a search you will recieve an error this script uses alta vista style searching you can search for +cgi+ +whatever and cgi will be found or no results at all will be displayed but a search for ++ ends in an error the url to see the error is http://616.org/vb/ you can get a copy of the script in the perl section search for exvatoria
0
 
maneshrCommented:
OK. the actual site where the xavatoria search engine is located is ...

http://www.xav.com/scripts/xavatoria/demo/search.html

i entered ++ as the search string and got the foll error message...

"Error: 500 Internal Server Error
Address: http://www.xav.com/scripts/xavatoria/demo/search.pl 

An error occurred while accessing this file. We are extremely sorry. If you'd like, please send us the details of what you were
doing when the error occurred.

Error handling script is Apache Guardian, © 1997-2000 by Fluid Dynamics."

Also when i entered ( as the search string i got the same error.

is this what you are saying??
let me know.

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
sdland1234Author Commented:
yes
0
 
maneshrCommented:
i installed the search.pl script and the index.txt script on my system.

i then tried searching on ++ and here is what i found.

when you enter ++, the script just ignores them (since ++ also happens to be a special character).

Therefore those characters are eliminated. That leaves nothing to search for & thats the reason you get the error.

the fix (not a solution) would be to add these 2 lines at line 106

print "Content-type: text/html\n\n";
print " ";

Before the for loop        foreach $term (@terms)

that will not show you the error page that you are getting now, but an empty page.

The solution would be to put down rules saying what should happen when the user enters some special characters, like ++ ( etc..., and  then show the user the usage page or something.

Hope that helps.

0
 
sdland1234Author Commented:
thank you
0
 
maneshrCommented:
most welcome :-)
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now