Post Reply 
Difficulties filtering XML
Aug. 12, 2004, 05:50 AM
Post: #9
 
Oddysey,
I thought that Prox filtered text/html unless you tell it to filter something else, either with a $TYPE() command in a web filter or $FILTER(true) in a header filter. I got that filter from someone else and modified it slightly.
Quote:how come you chose not to filter CSS styles?
If I think that stylesheets need to have something changed, I use $TYPE(css) because it is a web filter that I am using.
Quote:According to Scott's example, it would work equally well to eliminate the Match component entirely, and simply use the "$FILTER(True)" statement in the Replace string.
It just seemed to me to be the best way to handle the problem. I wanted to make sure that the file type, whatever it was, was going to be filtered. I probably got the idea from a filter from someone else that did something similar.

pooms,
Quote:text/plain is not filtered by default either, i have a rule for enabling filtering for it
as well, although I can't remember why I needed it.
If you use Internet Explorer, you might well want to filter plain text, since a file can have the content-type (and extension) stated as plain text, but if that file contains HTML tags, IE will render it as HTML.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[] - Korax - Aug. 10, 2004, 11:14 PM
[] - Oddysey - Aug. 11, 2004, 01:44 AM
[] - Siamesecat - Aug. 11, 2004, 07:50 AM
[] - Oddysey - Aug. 11, 2004, 04:26 PM
[] - Oddysey - Aug. 11, 2004, 04:40 PM
[] - z12 - Aug. 11, 2004, 06:24 PM
[] - pooms - Aug. 11, 2004, 06:36 PM
[] - Oddysey - Aug. 11, 2004, 08:17 PM
[] - Siamesecat - Aug. 12, 2004 05:50 AM

Forum Jump: