0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00
htmlpurifier/tests/HTMLPurifier
Edward Z. Yang d3abcb90e3 Rewrite CSS url() and font-family output logic.
The new logic is as follows:

* Given a URL to insert into url(), check that it is properly URL
  encoded (in particular, a doublequote and backslash never occurs
  within it) and then place it as url("http://example.com").

* Given a font name, if it is strictly alphanumeric, it is safe to omit
  quotes. Otherwise, wrap in double quotes and replace '"' with '\22 '
  (note trailing space) and '\' with '\5C ' (ditto).

We introduce expandCSSEscape() which is a hack for common parsing
idioms in CSS; this means that CSS escapes are now recognized inside
URLs as well as unquoted font names.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2010-05-31 18:45:21 -07:00
..
AttrDef Rewrite CSS url() and font-family output logic. 2010-05-31 18:45:21 -07:00
AttrTransform Fix bad configuration call in NameSyncTest.php. 2009-03-14 19:18:02 -04:00
ChildDef Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
ConfigSchema Revamp configuration backend. 2009-02-21 03:00:33 -05:00
DefinitionCache Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
Filter Rewrite CSS url() and font-family output logic. 2010-05-31 18:45:21 -07:00
HTMLModule Support flashvars. 2010-03-08 01:16:57 -05:00
HTMLT Rewrite CSS url() and font-family output logic. 2010-05-31 18:45:21 -07:00
Injector Implement auto-formatter that removes empty span tags. 2010-03-07 18:59:33 -05:00
Lexer Emit errors when body is extracted. 2010-05-04 13:41:09 -04:00
PHPT Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
SimpleTest Implement user-friendly links to test-cases on web tester. 2008-12-20 13:01:20 -05:00
Strategy Fix infinite loop involving wrapping formedness. 2010-05-17 23:22:51 -04:00
StringHashParser Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
URIFilter Make %URI.Munge respect %URI.Host (don't munge). 2009-07-06 22:04:51 -04:00
VarParser Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
AttrCollectionsTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
AttrDefHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
AttrDefTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
AttrTransformHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
AttrTransformTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
AttrTypesTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
AttrValidator_ErrorsTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
ChildDefHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ComplexHarness.php Make name="" and id="" play nicely together. 2009-02-21 02:58:30 -05:00
ConfigSchemaTest.php Revamp configuration backend. 2009-02-21 03:00:33 -05: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 Add HTMLPurifier_config->serialize() 2009-05-30 00:25:14 -04:00
ContextTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
DefinitionCacheFactoryTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
DefinitionCacheHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
DefinitionCacheTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
DefinitionTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
DefinitionTestable.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
DoctypeRegistryTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ElementDefTest.php Fix inability to totally override content model. 2009-06-10 18:24:52 -04:00
EncoderTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
EntityLookupTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
EntityParserTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ErrorCollectorEMock.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ErrorCollectorTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
ErrorsHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
GeneratorTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
Harness.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
HTMLDefinitionTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
HTMLModuleHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
HTMLModuleManagerTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
HTMLModuleTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
HTMLT.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
IDAccumulatorTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
InjectorHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
LanguageFactoryTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
LanguageTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
LengthTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
LexerTest.php Mute STRICT errors from CSSTidy and don't run PEARSax3 on PHP 5.3. 2010-04-26 18:27:32 -04:00
PercentEncoderTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
PropertyListTest.php Convert HTMLPurifier_Config to use property list backend. 2009-02-02 18:42:23 -05:00
StrategyHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
StringHashParserTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
StringHashTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
TagTransformTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
TokenFactoryTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
TokenTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
UnitConverterTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
URIDefinitionTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
URIFilterHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
URIHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
URIParserTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
URISchemeRegistryTest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
URISchemeTest.php Implement data URI scheme. 2010-03-07 21:45:39 -05:00
URITest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
VarParserHarness.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00