Solved

+ ( ) cause internal server error in xvatoria search script

Posted on 2000-04-17
7
162 Views
Last Modified: 2010-03-05
please advise how can i keep this from happening http://616.org/
0
Comment
Question by:sdland1234
  • 4
  • 3
7 Comments
 
LVL 16

Expert Comment

by:maneshr
ID: 2728236
pl explain and provide the exact URL.
0
 

Author Comment

by:sdland1234
ID: 2730693
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
 
LVL 16

Expert Comment

by:maneshr
ID: 2730795
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

Author Comment

by:sdland1234
ID: 2730923
yes
0
 
LVL 16

Accepted Solution

by:
maneshr earned 50 total points
ID: 2731294
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
 

Author Comment

by:sdland1234
ID: 2732111
thank you
0
 
LVL 16

Expert Comment

by:maneshr
ID: 2732143
most welcome :-)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now