[SPIP] +2.1.12
[velocampus/web/www.git] / www / extensions / safehtml / lib / safehtml / readme.txt
diff --git a/www/extensions/safehtml/lib/safehtml/readme.txt b/www/extensions/safehtml/lib/safehtml/readme.txt
new file mode 100644 (file)
index 0000000..d525f92
--- /dev/null
@@ -0,0 +1,81 @@
+SafeHTML\r
+--------\r
+Version 1.3.7.\r
+http://pixel-apes.com/safehtml/\r
+--------\r
+\r
+This parser strips down all potentially dangerous content within HTML:\r
+  * opening tag without its closing tag\r
+  * closing tag without its opening tag\r
+  * any of these tags: "base", "basefont", "head", "html", "body", "applet", "object", \r
+    "iframe", "frame", "frameset", "script", "layer", "ilayer", "embed", "bgsound", \r
+    "link", "meta", "style", "title", "blink", "xml" etc.\r
+  * any of these attributes: on*, data*, dynsrc\r
+  * javascript:/vbscript:/about: etc. protocols\r
+  * expression/behavior etc. in styles\r
+  * any other active content\r
+It also tries to convert code to XHTML valid, but htmltidy is far better solution for this task.\r
+\r
+If you found any bugs in this parser, please inform me -- ICQ:551593 or mailto:thingol@mail.ru\r
+\r
+Please, subscribe to http://pixel-apes.com/safehtml/feed/rss feed in order to receive notices \r
+when SAFEHTML will be updated.\r
+\r
+-- Roman Ivanov.\r
+-- Pixel-Apes ( http://pixel-apes.com ).\r
+-- JetStyle ( http://jetstyle.ru/ ).\r
+\r
+\r
+\r
+--------\r
+Version history:\r
+--------\r
+1.3.7.\r
+ * Added 'dl' to the list of 'lists' tags.\r
+ * Added 'callto' to the white list of protocols.\r
+ * Added white list of "namespaced" attributes.\r
+1.3.6.\r
+ * More accurate UTF-7 decoding.\r
+1.3.5.\r
+ * Two serious security flaws fixed: UTF-7 XSS and CSS comments handling.\r
+1.3.2.\r
+ * Security flaw (improper quotes handling in attributes' values) fixed. Big thanks to Nick Cleaton.\r
+1.3.1.\r
+ * Dumb bug fixed (some closing tags were ignored).\r
+1.3.0.\r
+ * Two holes (with decimal HTML entities and with \x00 symbol) fixed.\r
+ * Class rewritten under PEAR coding standarts.\r
+ * Class now uses unmodified HTMLSax3 from PEAR.\r
+ * To the list of table tags added: "caption", "col", "colgroup".\r
+1.2.1.\r
+ * It was possible to create XSS with hexadecimal HTML entities. Fixed. Big thanks to Christian Stocker.\r
+1.2.0.\r
+ * "id" and "name" attributes added to dangerous attributes list, because malefactor can broke legal javascript by spoofing ID or NAME of some element.\r
+ * New method parse() allows to do all parsing process in two lines of code. Examples also updated.\r
+ * New array, closeParagraph, contains list of block-level elements. When we open such elemet, we should close paragraph before. . It allows SafeHTML to produce more XHTML compliant code.\r
+ * Added "webcal" to white list of protocols for those who uses calendar programs (Mozilla/iCal/etc).\r
+ * Now SafeHTML strips down table elements when we are not inside table.\r
+ * Now SafeHTML correctly closes unclosed "li" tags: before opening "li" of the same nesting level.\r
+1.1.0.\r
+ * New "dangerous" protocols: hcp, ms-help, help, disk, vnd.ms.radio, opera, res, resource, chrome, mocha, livescript.\r
+ * <XML> tag was moved from "tags for deletion" to "tags for deletion with content".\r
+ * New "dangerous" CSS instruction "include-source" (NN4 specific).\r
+ * New array, Attributes, contains list of attributes for removal. If you need to remove "id" or "name" attribute, \r
+ just add it to this array.\r
+ * Now it is possible to choose between white-list and black-list filtering of protocols. Defaults are "white-list".\r
+ This list is: "http", "https", "ftp", "telnet", "news", "nntp", "gopher", "mailto", "file".\r
+ * For speed purposes, we now filter protocols only from these attributes: src, href, action, lowsrc, dynsrc, \r
+ background, codebase.\r
+ * Opera6 XSS bug ([\xC0][\xBC]script>alert(1)[\xC0][\xBC]/script> [UTF-8] workarounded.\r
+1.0.4.\r
+ New "dangerous" tag: plaintext.\r
+1.0.3.\r
+ Added array of elements that can have no closing tag.\r
+1.0.2.\r
+ Bug fix: <img src="&#106;&#97;&#118;&#97;&#115;&#99;&#114;&#105;&#112;&#116;&#58;alert(1);"> attack.\r
+ Thanks to shmel.\r
+1.0.1.\r
+ Bug fix: safehtml hangs on <style></style></style> code.\r
+ Thanks to lj user=electrocat.\r
+1.0.0.\r
+ First public release\r