aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-09-23 09:11:05 +0000
committerMario <mario@mariovavti.com>2019-09-23 12:20:28 +0200
commite37c43ea06deabe86bd0ec572a89e5159b4b6997 (patch)
tree730d849035b445042de07674aaae8745d2daa71f /vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
parent9b90114d035ce4c10ee11cd2fbffe1f5ab95af17 (diff)
downloadvolse-hubzilla-e37c43ea06deabe86bd0ec572a89e5159b4b6997.tar.gz
volse-hubzilla-e37c43ea06deabe86bd0ec572a89e5159b4b6997.tar.bz2
volse-hubzilla-e37c43ea06deabe86bd0ec572a89e5159b4b6997.zip
composer update ezyang/htmlpurifier
(cherry picked from commit a34ce790129bdd729a5019895ea6cd4c59f08ba4)
Diffstat (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier.php')
-rw-r--r--vendor/ezyang/htmlpurifier/library/HTMLPurifier.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
index bada5188b..0bd2a3ba6 100644
--- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
+++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
@@ -19,7 +19,7 @@
*/
/*
- HTML Purifier 4.10.0 - Standards Compliant HTML Filtering
+ HTML Purifier 4.11.0 - Standards Compliant HTML Filtering
Copyright (C) 2006-2008 Edward Z. Yang
This library is free software; you can redistribute it and/or
@@ -58,12 +58,12 @@ class HTMLPurifier
* Version of HTML Purifier.
* @type string
*/
- public $version = '4.10.0';
+ public $version = '4.11.0';
/**
* Constant with version of HTML Purifier.
*/
- const VERSION = '4.10.0';
+ const VERSION = '4.11.0';
/**
* Global configuration object.
@@ -240,12 +240,16 @@ class HTMLPurifier
public function purifyArray($array_of_html, $config = null)
{
$context_array = array();
- foreach ($array_of_html as $key => $html) {
- $array_of_html[$key] = $this->purify($html, $config);
+ foreach($array_of_html as $key=>$value){
+ if (is_array($value)) {
+ $array[$key] = $this->purifyArray($value, $config);
+ } else {
+ $array[$key] = $this->purify($value, $config);
+ }
$context_array[$key] = $this->context;
}
$this->context = $context_array;
- return $array_of_html;
+ return $array;
}
/**