Fix two bugs with caching of customized raw definitions.customize-raw
commitf3d050c517aab64a24f077ee6ea9009381db9de4
authorEdward Z. Yang <ezyang@mit.edu>
Thu, 30 Dec 2010 23:51:53 +0000 (30 23:51 +0000)
committerEdward Z. Yang <ezyang@mit.edu>
Thu, 30 Dec 2010 23:51:53 +0000 (30 23:51 +0000)
treeda8d639afa4fa449262b5cbb264ccb689c5287a0
parent6dcc37cb5560af6cad0ebf4799a8fcabc04aa1de
Fix two bugs with caching of customized raw definitions.

The first bug is that we will repeatedly write out the result
of a customized raw definition to the filesystem, even when a cache
entry already exists.

The second bug is that caching these definitions doesn't actually
work (the cache entry is written but never used.)  A new API
for retrieving raw definitions permits the user to take advantage
of caching.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
NEWS
docs/enduser-customize.html
library/HTMLPurifier/Config.php
library/HTMLPurifier/ConfigSchema/schema/HTML.Nofollow.txt
library/HTMLPurifier/Definition.php
tests/HTMLPurifier/AttrValidator_ErrorsTest.php
tests/HTMLPurifier/ConfigTest.php
tests/HTMLPurifier/DefinitionCache/SerializerTest.php
tests/HTMLPurifier/HTMLDefinitionTest.php
tests/HTMLPurifier/HTMLModule/SafeEmbedTest.php
tests/HTMLPurifier/Strategy/RemoveForeignElementsTest.php