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
Solved

+ ( ) cause internal server error in xvatoria search script

Posted on 2000-04-17
7
163 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
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…

860 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