1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-11 01:36:20 +02:00

Commit Graph

  • c5b18d345c Fix validation error in documentation index. Edward Z. Yang 2008-10-16 20:08:01 -04:00
  • d26418ca3a Ignore runtime files in Phorum plugin directory. Edward Z. Yang 2008-10-11 23:20:12 -04:00
  • d304c5c976 Detect if domxml extension is loaded, and use DirectLex accordingly. Edward Z. Yang 2008-10-08 17:06:10 -04:00
  • f7bc0b0875 Implement %Attr.DefaultImageAlt, allowing overriding default behavior for alt attributes. Edward Z. Yang 2008-10-06 14:51:03 -04:00
  • 70515dd48f Increase test coverage, and modify handleEnd behavior to only see correct tokens. Edward Z. Yang 2008-10-01 15:40:31 -04:00
  • 1555cb617f Minor refactoring and bugfixing of Injector and MakeWellFormed. Edward Z. Yang 2008-10-01 04:10:41 -04:00
  • cd4500457e More refactoring to MakeWellFormed and Injectors; they work better than ever now! Edward Z. Yang 2008-10-01 03:14:28 -04:00
  • fa413e96ac Implement Injector->handleEnd, with lots of refactoring for injector. Edward Z. Yang 2008-10-01 00:54:51 -04:00
  • d0fdcc103e Add support for proprietary "background" attribute in table elements. Edward Z. Yang 2008-09-27 21:19:35 -04:00
  • 6a06b92f0c Setup ErrorCollector to maintain new error format, and output that HTML. Edward Z. Yang 2008-09-15 19:08:58 -04:00
  • 3184fee468 Undo start()/end() error collector changes in AttrValidator. Edward Z. Yang 2008-09-05 17:25:35 -04:00
  • ed7983b559 Refactor lexer instantiation logic with exceptions and forced line tracking. Edward Z. Yang 2008-09-05 14:04:23 -04:00
  • 92df9e5b28 Update customize docs to use new directive name for definition caching. Edward Z. Yang 2008-09-02 16:38:40 -04:00
  • 2f41bd07fa Update docs, removing $Id$ and linking to repo.or.cz. Edward Z. Yang 2008-09-02 15:01:25 -04:00
  • c6914dce51 Track column numbers in addition to line numbers. Edward Z. Yang 2008-09-01 14:10:10 -04:00
  • 9977350143 Fix bug with anonymous module and the SafeObject/SafeEmbed modules. Edward Z. Yang 2008-08-31 19:06:25 -04:00
  • d9e60350d3 Migrate AttrValidator to nested error format; modify generator logic in ErrorCollector. Edward Z. Yang 2008-08-18 22:13:58 -04:00
  • c807ed5fe2 Implement nested error collection with start() and end() in ErrorCollector. Edward Z. Yang 2008-08-16 00:41:34 -04:00
  • c9b6f125aa Forms implementation for %HTML.Trusted. Some backend changes: Edward Z. Yang 2008-08-15 18:57:44 -04:00
  • dc28346677 Fix bug where absolute paths with dots/double-dots were not collapsed. Edward Z. Yang 2008-08-15 13:12:54 -04:00
  • 8423daef05 Increase test coverage for MakeAbsolute. Edward Z. Yang 2008-08-13 23:19:38 -04:00
  • 617f70a8ac Improve auto-paragraph to preserve newlines and handle edge-cases better. Edward Z. Yang 2008-08-10 00:32:29 -04:00
  • 0423985b45 Detect if HTML support in DOM is disabled by checking loadHTML(). Edward Z. Yang 2008-08-07 18:44:21 -04:00
  • e013bc9126 Fix bug involving autoclose and inline elements in strict <blockquote>. Edward Z. Yang 2008-08-01 20:52:06 -04:00
  • 1d90bb2397 Allow <![CDATA[<body>...</body>]]> not to trigger Core.ConvertDocumentToFragment Edward Z. Yang 2008-08-01 19:06:28 -04:00
  • 03dabec2c0 Fix documentation error in Filter.ExtractStyleBlocks and give better example. Edward Z. Yang 2008-08-01 18:58:47 -04:00
  • 85090520f1 Add double-munging protection by checking if the domains are the same. Edward Z. Yang 2008-07-26 22:45:19 -06:00
  • 3b6aa10592 %URI.DisableExternal(Resources) uses %URI.Base if %URI.Host is not available. Edward Z. Yang 2008-07-10 18:46:46 -04:00
  • 3a4b92da81 Slight optimization in LinkTypes using array_keys(). Edward Z. Yang 2008-07-08 21:47:52 -04:00
  • 0ec9731184 Update TODO to add IDNA support along with IRI support. Edward Z. Yang 2008-07-08 20:41:57 -04:00
  • e05bd77344 Implement HTMLT tests, and migrate HTMLPurifierTest to this format. Edward Z. Yang 2008-07-05 02:34:19 -04:00
  • 334ffac5b4 Various improvements to test script command line options, i.e. --type Edward Z. Yang 2008-07-05 02:25:40 -04:00
  • a227cb483a Allow empty sections in string hashes; previously they were left undefined. Edward Z. Yang 2008-07-04 21:26:26 -04:00
  • aa0fdeee30 Refine Lexers for parsing stray angled brackets; %Core.AggressivelyFixLt = true Edward Z. Yang 2008-06-28 00:43:02 -04:00
  • ba418a1f19 Redirect stderr to stdout when calling flush.php Edward Z. Yang 2008-07-05 03:15:36 -04:00
  • c845f0bb78 Give warnings when attempting to use encoding iconv doesn't support. Edward Z. Yang 2008-07-05 03:14:32 -04:00
  • 594268ca3b Fix two bugs in MakeAbsolute filter involving base URIs that have empty path. Edward Z. Yang 2008-07-05 03:12:44 -04:00
  • 965be3bd73 Add support for unrecognized elements in MakeWellFormed. Edward Z. Yang 2008-07-05 03:11:29 -04:00
  • 700d5bcbfc Implement %AutoFormat.RemoveEmpty, end to start ref, and injector rewind. Edward Z. Yang 2008-06-27 16:09:14 -04:00
  • fd384129bf Proper support for name attribute in <a> and <img> Edward Z. Yang 2008-06-27 15:44:27 -04:00
  • f8b47c64dd Make Strategy_MakeWellFormed operate in place. Edward Z. Yang 2008-06-27 01:33:48 -04:00
  • a5ceb1e22a Update printTokens() debug function to work with new Generator API. Edward Z. Yang 2008-06-27 01:33:20 -04:00
  • 636e2883df Add ignore rules for configdoc generated files. Edward Z. Yang 2008-06-27 00:14:39 -04:00
  • dba3ed7770 [3.1.2] Implement comments when %HTML.Trusted is on. Edward Z. Yang 2008-06-25 23:12:19 -04:00
  • de9869d942 Ignore .phpt.skip.php files. Edward Z. Yang 2008-06-25 23:10:03 -04:00
  • cfcdce0db8 Ignore test-settings.php Edward Z. Yang 2008-06-25 22:47:12 -04:00
  • 6bc04e0e10 Rename dummy file to proper location. v3.1.1.2 Edward Z. Yang 2008-06-25 22:43:55 -04:00
  • 24f6db6fb2 [3.1.2] Add %Output.SortAttr to deal with FCKeditor bug Edward Z. Yang 2008-06-24 22:36:27 -04:00
  • 85fb192d93 Remove incorrect information about bit-size Edward Z. Yang 2008-06-24 22:12:56 -04:00
  • 7727cea112 Add Git specific files and configuration v3.1.1.1 Edward Z. Yang 2008-06-24 22:02:16 -04:00
  • 6bb8c1fcac Handle CRLF discrepancies Edward Z. Yang 2008-06-24 21:10:51 -04:00
  • a84b6d5be0 Add new NEWS entries Edward Z. Yang 2008-06-21 05:00:17 +00:00
  • 6e43cac9c9 Add some extra helpful data for FOCUS Edward Z. Yang 2008-06-20 02:59:01 +00:00
  • 656a0c95bf Add update Freshmeat script. Edward Z. Yang 2008-06-20 01:48:46 +00:00
  • f38e81785f Release 2.1.5 v2.1.5 Edward Z. Yang 2008-06-19 22:57:15 +00:00
  • 7015aaff46 Release 3.1.1 v3.1.1 Edward Z. Yang 2008-06-19 21:43:57 +00:00
  • 1009bd41a6 var -> public Edward Z. Yang 2008-06-19 21:24:50 +00:00
  • 2cc829a8cf Fix PHP 4.3.9/10 bug with float handling Edward Z. Yang 2008-06-19 21:13:56 +00:00
  • e80a54a7c9 Add missing include. Edward Z. Yang 2008-06-19 19:58:53 +00:00
  • 511dfe2d4a [3.1.1] Update Munge docs. Edward Z. Yang 2008-06-19 19:06:55 +00:00
  • 463aa3a0fa [3.1.1] General munge improvements - Add CurrentCSSProperty context variable - Move Munge to its own class, derived off of SecureMunge. - Rename %URI.SecureMunge to %URI.Munge - Rename %URI.SecureMungeSecretKey to %URI.MungeSecretKey - Add extra substitutions for munge Edward Z. Yang 2008-06-18 03:29:27 +00:00
  • 7189ec2790 Update TODO Edward Z. Yang 2008-06-17 04:00:03 +00:00
  • e901d832ab Update Modx plugin to work with HTML Purifier 3.1.0. Edward Z. Yang 2008-06-17 03:41:40 +00:00
  • 6f71e65661 [2.1.5] [MFH] Fix text-decoration: none bug Edward Z. Yang 2008-06-17 03:18:23 +00:00
  • 643ed1bddc [3.1.1] Fix text-decoration: none bug Edward Z. Yang 2008-06-17 03:12:50 +00:00
  • 41830cd902 Update TODO Edward Z. Yang 2008-06-17 02:40:38 +00:00
  • 261aa1aeaa Update news, installer, and add an extra specimen. Edward Z. Yang 2008-06-15 22:13:16 +00:00
  • 486b401cf7 Fix broken tests. Edward Z. Yang 2008-06-12 03:12:39 +00:00
  • f2794e59c5 [3.1.1] Mimick movie value in data if not set in safe object. Edward Z. Yang 2008-06-11 23:12:38 +00:00
  • 6f25c39c3e [2.1.5] [MFH] Fix Shift_JIS bug. Edward Z. Yang 2008-06-11 19:01:22 +00:00
  • b8b1ac283d [2.1.5] [MFH] Fix regression in FontFamily Edward Z. Yang 2008-06-11 18:54:19 +00:00
  • 450fc6649d [2.1.5] [MFH] Fix Shift_JIS encoding wonkiness with yen symbols and whatnot, as well as other patches Edward Z. Yang 2008-06-11 18:49:56 +00:00
  • 369a69d533 [2.1.5] [MFH] Fix stray backslashes in font-family. Edward Z. Yang 2008-06-11 17:43:48 +00:00
  • 72f5819ef6 [2.1.5] [MFH] Round up imagecrash support with HTML.MaxImgLength Edward Z. Yang 2008-06-11 17:38:25 +00:00
  • 3540ea7fce [2.1.5] [MFH] Make modules use setup($config) instead of constructor Edward Z. Yang 2008-06-11 17:10:39 +00:00
  • c03953f85e [2.1.5] [MFH] Percent encode query and hash, and lazy update with attr validator Edward Z. Yang 2008-06-11 04:00:06 +00:00
  • 0d262b3a1d Add missing bits from previous commit. Edward Z. Yang 2008-06-11 01:56:22 +00:00
  • 234cd2196f [2.1.5] [MFH] Complete the imagecrash added protection fixes Edward Z. Yang 2008-06-11 01:53:31 +00:00
  • 0dbe87bbc7 [2.1.5] [MFH] Disable Tidy tests Edward Z. Yang 2008-06-11 01:25:05 +00:00
  • 245b5bdb27 Merged r1746: Length and UnitConverter implementation. Edward Z. Yang 2008-06-11 01:21:36 +00:00
  • d702077d2e Undo redundant embedded URI check. Edward Z. Yang 2008-06-10 01:23:11 +00:00
  • 36bd06d53e [3.1.1] Implement SafeEmbed. Also, miscellaneous bugfixes. Edward Z. Yang 2008-06-10 01:18:03 +00:00
  • 13eb016e06 [3.1.1] Implement SafeObject. Edward Z. Yang 2008-06-10 00:13:44 +00:00
  • 32025a12e1 [3.1.1] Allow injectors to be specified by modules. - Make method for URI implemented - Split out checkNeeded in Injector from prepare Edward Z. Yang 2008-06-09 01:23:05 +00:00
  • 7dae94c44b Update TODO. Edward Z. Yang 2008-06-08 16:57:48 +00:00
  • 54cc691ba7 Update TODO. Edward Z. Yang 2008-06-04 22:52:48 +00:00
  • 3af2ff8f98 Fix bug with SecureMunge regarding embedded URIs. Edward Z. Yang 2008-06-02 17:39:29 +00:00
  • 36fb284d2f Add integration test, and fix broken SecureMunge Edward Z. Yang 2008-05-27 17:47:25 +00:00
  • 8d1f1e8e73 [3.1.1] Improved adherence to Unicode by checking for non-character codepoints. Thanks Geoffrey Sneddon for reporting. Edward Z. Yang 2008-05-26 21:27:52 +00:00
  • 322288e6c0 [3.1.1] Implement %URI.SecureMunge and %URI.SecureMungeSecretKey, thanks Chris! - URIFilter->prepare can return false in order to abort loading of the filter - Implemented post URI filtering. Set member variable $post to true to set a URIFilter as such. Edward Z. Yang 2008-05-26 16:26:47 +00:00
  • 3c4346cb1e Fix back-compat regressions. Also, compactify configuration code. Edward Z. Yang 2008-05-26 04:35:12 +00:00
  • 14d934c7ca [3.1.1] Land vs's HTMLPurifier_Generator patch, and a number of other bugfixes for that change - Convert a number of calls to use new constructor signature for Generator - Make generator require configuration; this exposes a number of latent bugs - Removed generator hack - Convert Printers to use new optimized ConfigSchema format - Hack with Printer configuration; pass an array(generator config, render config) to distinguish between output and target. - HTML/CSS Printers need to be primed, otherwise fatal errors - Convert a few test-cases to use member properties Edward Z. Yang 2008-05-26 04:05:48 +00:00
  • bb16d8eae5 [3.1.1] Fix Shift_JIS encoding wonkiness with yen symbols and whatnot - Improve parseCDATA algorithm to take into account newline normalization - Fix regression in FontFamily validator. We now have a legit parser in place, albeit somewhat limited in use. Will be superseded by parser for entire grammar - Convert EncoderTest to new format Edward Z. Yang 2008-05-25 05:40:20 +00:00
  • 10530d7f81 [3.1.1] Fix stray backslashes in font-family. Edward Z. Yang 2008-05-24 18:19:36 +00:00
  • c7e172f660 Update news: not 1/2, more like 1/3 Edward Z. Yang 2008-05-23 17:15:13 +00:00
  • 917d2ea5ef [3.1.1] More ConfigSchema optimizations: degenerate form can accommodate type and allow_null Edward Z. Yang 2008-05-23 17:10:26 +00:00
  • 895141e0b5 [3.1.1] Further optimize ConfigSchema by eliminating stdclass when only type is set. Edward Z. Yang 2008-05-23 17:00:58 +00:00
  • 8ab30e24b7 [3.1.1] Memory optimizations for ConfigSchema. Changes include: - Elimination of ConfigDef and subclasses in favor of stdclass. Most property names stay the same - Added benchmark script for ConfigSchema - Types are internally handled as magic integers. Use HTMLPurifier_VarParser->getTypeName to convert to human readable form. HTMLPurifier_VarParser still accepts strings. - Parser in config schema only used for legacy interface Edward Z. Yang 2008-05-23 16:43:24 +00:00
  • 9db891c3aa Add benchmark script for ConfigSchema. Edward Z. Yang 2008-05-23 15:24:15 +00:00
  • eb9f9bc7f6 [3.1.1] Round up imagecrash support with HTML.MaxImgLength - Add $max to AttrDef/HTML/Pixels.php - Add %HTML.MaxImgLength - CSS width/height allows percents when MaxImgLength is disabled Edward Z. Yang 2008-05-23 02:09:43 +00:00