Solved

+ ( ) cause internal server error in xvatoria search script

Posted on 2000-04-17
7
166 Views
Last Modified: 2010-03-05
please advise how can i keep this from happening http://616.org/
0
Comment
Question by:sdland1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: 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!

 

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

Industry Leaders: 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!

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Six Sigma Control Plans

729 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