Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strip dangerous tags

Status
Not open for further replies.

BLG

Programmer
Sep 29, 2000
6
NZ
Hi,

I have a lot of different web applications that display data that comes from a database that is updated by an interface which allows any characters.

Since the data is used in hundreds of web pages I was wondering if it was possible to have a generic function that strips out anything that I determine is a dangerous tag.

I thought about ISAPI but does anyone have any ideas on this?

Thanks very much.
 
Create a function in a class file that will do what you want. Then just instantiate the class on the pages where you need it. Then call your function as needed.

Jim
 
Or an alternative (Jim's method would be easier to implement though) is to use Page Inheritance and in your Page Base class, simply call that function (therefore any page that inherits from this class will automatically have them stripped out).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks guys,
Since these web applications already exist, we're trying to avoid changing every page in the organisation.

Is there anything we can do from the web server?
 
No, you'll have to do something at page level if the existing applications have not been developed to take into account something like this.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks very much. I've decided to take ca8msm suggestion and write an inherits page and start dishing out overtime!

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top