From 2cab677427f7fd462f35432d4a83fe89a26d7595 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 9 Jul 2008 09:55:42 +0000 Subject: Elgg 1.0, meet kses. Kses, Elgg 1.0. git-svn-id: https://code.elgg.org/elgg/trunk@1344 36083f99-b078-4883-b0ff-0f9b5a30f544 --- vendors/kses/README | 206 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 vendors/kses/README (limited to 'vendors/kses/README') diff --git a/vendors/kses/README b/vendors/kses/README new file mode 100644 index 000000000..192524c9f --- /dev/null +++ b/vendors/kses/README @@ -0,0 +1,206 @@ +kses 0.2.2 README [kses strips evil scripts!] +================= + + +* INTRODUCTION * + + +Welcome to kses - an HTML/XHTML filter written in PHP. It removes all unwanted +HTML elements and attributes, no matter how malformed HTML input you give it. +It also does several checks on attribute values. kses can be used to avoid +Cross-Site Scripting (XSS), Buffer Overflows and Denial of Service attacks, +among other things. + +The program is released under the terms of the GNU General Public License. You +should look into what that means, before using kses in your programs. You can +find the full text of the license in the file COPYING. + + +* FEATURES * + + +Some of kses' current features are: + +* It will only allow the HTML elements and attributes that it was explicitly +told to allow. + +* Element and attribute names are case-insensitive (a href vs A HREF). + +* It will understand and process whitespace correctly. + +* Attribute values can be surrounded with quotes, apostrophes or nothing. + +* It will accept valueless attributes with just names and no values (selected). + +* It will accept XHTML's closing " /" marks. + +* Attribute values that are surrounded with nothing will get quotes to avoid +producing non-W3C conforming HTML +( works but isn't valid HTML). + +* It handles lots of types of malformed HTML, by interpreting the existing +code the best it can and then rebuilding new code from it. That's a better +approach than trying to process existing code, as you're bound to forget about +some weird special case somewhere. It handles problems like never-ending +quotes and tags gracefully. + +* It will remove additional "<" and ">" characters that people may try to +sneak in somewhere. + +* It supports checking attribute values for minimum/maximum length and +minimum/maximum value, to protect against Buffer Overflows and Denial of +Service attacks against WWW clients and various servers. You can stop +