0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 08:21:52 +00:00
htmlpurifier/tests/HTMLPurifier
Mateusz Turcza 3bdc031224
Add %HTML.Forms config directive (#260)
The %HTML.Forms directive enables Forms module regardless of the %HTML.Trusted
value. This adds support for form elements without enabling other unsafe
modules, such as Scripts, Iframe or Object.

To achieve the same effect without this directive one has to explicitly list
all enabled modules in %HTML.AllowedModules, and any not listed will be
removed. This however is not very convenient, as the allowed modules may vary
between doctypes.

Resolves #213.
2020-06-28 20:26:33 -04:00
..
AttrDef Issue 238 remove leading zeroes except if there is only zero (#239) 2019-11-21 10:05:07 -05:00
AttrTransform PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ChildDef Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
ConfigSchema PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
DefinitionCache Fix #49; prevent readdir infinite loop when cache directory not listable. 2016-03-27 14:53:31 -07:00
Filter Test for catastrophic backtracking. 2017-03-06 23:26:55 -08:00
HTMLModule Add %HTML.Forms config directive (#260) 2020-06-28 20:26:33 -04:00
HTMLT Fix #78. 2017-03-06 22:54:54 -08:00
Injector Add test case for removing empty list items. 2017-03-08 00:11:32 -08:00
Lexer Fix infinite loop in Lexer. 2013-10-27 21:41:08 -07:00
PHPT Improve gitignore. 2013-10-13 00:18:11 -07:00
SimpleTest PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Strategy Refactor HTML.Noopener to HTML.TargetNoopener so that it behaves like HTML.TargetNoreferrer and is active by default if a target is set 2017-02-03 16:54:51 -08:00
StringHashParser Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
URIFilter tel protocol support. 2016-06-30 21:19:49 -04:00
VarParser Fixed reserved words in constants for PHP 7 as per https://www.php.net/manual/en/reserved.other-reserved-words.php (#222) 2019-07-10 22:24:27 -04:00
AttrCollectionsTest.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
AttrDefHarness.php Handle case when IDNAs are supported. 2016-10-27 02:00:46 -07:00
AttrDefTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
AttrTransformHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
AttrTransformTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
AttrTypesTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
AttrValidator_ErrorsTest.php PHP 7.0 warnings fix: don't pass rvalue by reference. 2016-10-27 02:00:46 -07:00
ChildDefHarness.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
ComplexHarness.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
ConfigSchemaTest.php Fixed reserved words in constants for PHP 7 as per https://www.php.net/manual/en/reserved.other-reserved-words.php (#222) 2019-07-10 22:24:27 -04:00
ConfigTest-create.ini Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ConfigTest-finalize.ini Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ConfigTest-loadIni.ini Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ConfigTest.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
ContextTest.php Properly handle context variables that are NULL. 2013-10-13 13:21:02 -07:00
DefinitionCacheFactoryTest.php PHP 7.0 warnings fix: don't pass rvalue by reference. 2016-10-27 02:00:46 -07:00
DefinitionCacheHarness.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
DefinitionCacheTest.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
DefinitionTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
DefinitionTestable.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
DoctypeRegistryTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ElementDefTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
EncoderTest.php Add test for #122 2017-03-04 15:40:44 +09:00
EntityLookupTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
EntityParserTest.php Add tests for new entity decoding codepath. 2017-03-12 20:05:09 -07:00
ErrorCollectorEMock.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ErrorCollectorTest.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
ErrorsHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
GeneratorTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Harness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLDefinitionTest.php Supported hundreds of nested HTML (#202) 2019-07-14 13:15:31 -04:00
HTMLModuleHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLModuleManagerTest.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
HTMLModuleTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLT.php Fix #45, errors when ul/ol allowed without li. 2016-03-26 22:41:54 -07:00
IDAccumulatorTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
InjectorHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
LanguageFactoryTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
LanguageTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
LengthTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
LexerTest.php Revamp entity decoding to be more like HTML5. 2017-03-07 17:34:59 -08:00
PercentEncoderTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
PropertyListTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
StrategyHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
StringHashParserTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
StringHashTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
TagTransformTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
TokenFactoryTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
TokenTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
UnitConverterTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URIDefinitionTest.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
URIFilterHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URIHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URIParserTest.php tel protocol support. 2016-06-30 21:19:49 -04:00
URISchemeRegistryTest.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URISchemeTest.php avoid exif_imagetype exception with small files/corrupt data URI 2016-07-16 05:23:17 -07:00
URITest.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
VarParserHarness.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ZipperTest.php Use a Zipper to process MakeWellFormed, removing quadratic behavior. 2013-10-13 13:21:02 -07:00