From d660b9018bd99e289faf1c24be26ca831b9d463d Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 30 Sep 2006 20:18:08 +0000 Subject: [PATCH] [1.2.0] - Add 1.1.3 section in NEWS - Replace tabs with four spaces in INSTALL - Renamed data.txt to entities.ser git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@481 48356398-32a2-884e-a903-53898d9a118a --- INSTALL | 4 ++-- NEWS | 3 +++ library/HTMLPurifier/EntityLookup.php | 2 +- library/HTMLPurifier/EntityLookup/{data.txt => entities.ser} | 0 maintenance/generate-entity-file.php | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) rename library/HTMLPurifier/EntityLookup/{data.txt => entities.ser} (100%) diff --git a/INSTALL b/INSTALL index 168d1026..52991e33 100644 --- a/INSTALL +++ b/INSTALL @@ -25,7 +25,7 @@ not having either of these extensions. Simply use: - require_once '/path/to/library/HTMLPurifier.auto.php'; + require_once '/path/to/library/HTMLPurifier.auto.php'; ...and you're good to go. Since HTML Purifier's codebase is fairly large, I recommend only including HTML Purifier when you need it. @@ -33,7 +33,7 @@ large, I recommend only including HTML Purifier when you need it. If you don't like your include_path to be fiddled around with, simply set HTML Purifier's library/ directory to the include path yourself and then: - require_once 'HTMLPurifier.php'; + require_once 'HTMLPurifier.php'; Only the contents in the library/ folder are necessary, so you can remove everything else when using HTML Purifier in a production environment. diff --git a/NEWS b/NEWS index 2365d4e8..c3cc766c 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,9 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier 1.2.0, unknown projected release date (feature release) +1.1.3, unknown projected release date +(bugfix release, may be dropped if no major bugs are found before features) + 1.1.2, released 2006-09-30 ! Add HTMLPurifier.auto.php stub file that configures include_path - Documentation updated diff --git a/library/HTMLPurifier/EntityLookup.php b/library/HTMLPurifier/EntityLookup.php index 23ec8563..9816f865 100644 --- a/library/HTMLPurifier/EntityLookup.php +++ b/library/HTMLPurifier/EntityLookup.php @@ -19,7 +19,7 @@ class HTMLPurifier_EntityLookup { */ function setup($file = false) { if (!$file) { - $file = dirname(__FILE__) . '/EntityLookup/data.txt'; + $file = dirname(__FILE__) . '/EntityLookup/entities.ser'; } $this->table = unserialize(file_get_contents($file)); } diff --git a/library/HTMLPurifier/EntityLookup/data.txt b/library/HTMLPurifier/EntityLookup/entities.ser similarity index 100% rename from library/HTMLPurifier/EntityLookup/data.txt rename to library/HTMLPurifier/EntityLookup/entities.ser diff --git a/maintenance/generate-entity-file.php b/maintenance/generate-entity-file.php index 18033e5d..283650cd 100644 --- a/maintenance/generate-entity-file.php +++ b/maintenance/generate-entity-file.php @@ -13,7 +13,7 @@ chdir( dirname(__FILE__) ); $entity_dir = '../docs/entities/'; // defines the output file for the serialized content. -$output_file = '../library/HTMLPurifier/EntityLookup/data.txt'; +$output_file = '../library/HTMLPurifier/EntityLookup/entities.ser'; // courtesy of a PHP manual comment function unichr($dec) {