Solved

+ ( ) cause internal server error in xvatoria search script

Posted on 2000-04-17
7
159 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
Comment Utility
pl explain and provide the exact URL.
0
 

Author Comment

by:sdland1234
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:sdland1234
Comment Utility
yes
0
 
LVL 16

Accepted Solution

by:
maneshr earned 50 total points
Comment Utility
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
Comment Utility
thank you
0
 
LVL 16

Expert Comment

by:maneshr
Comment Utility
most welcome :-)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 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