0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-23 00:41:52 +00:00

[2.1.0] Fix fairly major bug introduced when logic was reorganized.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1324 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2007-07-31 02:39:49 +00:00
parent a12ea4bb3b
commit ab950a1909

View File

@ -175,16 +175,15 @@ create_blank('HTMLPurifier.php');
echo 'Creating full file...'; echo 'Creating full file...';
$contents = replace_includes(file_get_contents('HTMLPurifier.php')); $contents = replace_includes(file_get_contents('HTMLPurifier.php'));
file_put_contents('HTMLPurifier.standalone.php', $contents);
echo ' done!' . PHP_EOL;
echo 'Creating standalone directory...';
// rearrange things that can't be put in our standalone file
$contents = str_replace( $contents = str_replace(
"define('HTMLPURIFIER_PREFIX', dirname(__FILE__));", "define('HTMLPURIFIER_PREFIX', dirname(__FILE__));",
"define('HTMLPURIFIER_PREFIX', dirname(__FILE__) . '/standalone');", "define('HTMLPURIFIER_PREFIX', dirname(__FILE__) . '/standalone');",
$contents $contents
); );
file_put_contents('HTMLPurifier.standalone.php', $contents);
echo ' done!' . PHP_EOL;
echo 'Creating standalone directory...';
rmdirr('standalone'); // ensure a clean copy rmdirr('standalone'); // ensure a clean copy
mkdir_deep('standalone/HTMLPurifier/DefinitionCache/Serializer'); mkdir_deep('standalone/HTMLPurifier/DefinitionCache/Serializer');
make_dir_standalone('HTMLPurifier/EntityLookup'); make_dir_standalone('HTMLPurifier/EntityLookup');