mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-02 12:21:09 +02:00
[2.1.4] [MFH] getInstance -> instance from r1689
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/branches/php4@1720 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
1
NEWS
1
NEWS
@@ -29,6 +29,7 @@ ERRATA
|
|||||||
on the same element without emitting errors.
|
on the same element without emitting errors.
|
||||||
- Iconv uses set_error_handler instead of shut-up operator
|
- Iconv uses set_error_handler instead of shut-up operator
|
||||||
- Add protection against imagecrash attack with CSS height/width
|
- Add protection against imagecrash attack with CSS height/width
|
||||||
|
- HTMLPurifier::getInstance() renamed to HTMLPurifier::instance() for consistency
|
||||||
|
|
||||||
2.1.3, released 2007-11-05
|
2.1.3, released 2007-11-05
|
||||||
! tests/multitest.php allows you to test multiple versions by running
|
! tests/multitest.php allows you to test multiple versions by running
|
||||||
|
@@ -213,7 +213,7 @@ class HTMLPurifier
|
|||||||
* @param $prototype Optional prototype HTMLPurifier instance to
|
* @param $prototype Optional prototype HTMLPurifier instance to
|
||||||
* overload singleton with.
|
* overload singleton with.
|
||||||
*/
|
*/
|
||||||
function &getInstance($prototype = null) {
|
function &instance($prototype = null) {
|
||||||
static $htmlpurifier;
|
static $htmlpurifier;
|
||||||
if (!$htmlpurifier || $prototype) {
|
if (!$htmlpurifier || $prototype) {
|
||||||
if (is_a($prototype, 'HTMLPurifier')) {
|
if (is_a($prototype, 'HTMLPurifier')) {
|
||||||
@@ -227,6 +227,9 @@ class HTMLPurifier
|
|||||||
return $htmlpurifier;
|
return $htmlpurifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function &getInstance($prototype = null) {
|
||||||
|
return HTMLPurifier::instance($prototype);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user