aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2019-09-23 19:16:38 +0200
committerM. Dent <dentm42@gmail.com>2019-09-23 19:16:38 +0200
commita4f26034545911ff82d73d04517d5e68bf434924 (patch)
treeb5ca62e3ba9726324053418fffc970f5b61d1388 /vendor/ezyang/htmlpurifier/library/HTMLPurifier.php
parentcc860b4a76139f5113b82c4f5bc2923da2f3c828 (diff)
parente37c43ea06deabe86bd0ec572a89e5159b4b6997 (diff)
downloadvolse-hubzilla-a4f26034545911ff82d73d04517d5e68bf434924.tar.gz
volse-hubzilla-a4f26034545911ff82d73d04517d5e68bf434924.tar.bz2
volse-hubzilla-a4f26034545911ff82d73d04517d5e68bf434924.zip
Merge branch 'cherry-pick-a34ce790' into 'dev'
composer update ezyang/htmlpurifier See merge request hubzilla/core!1732
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;
}
/**