diff --git a/library/HTMLPurifier/Injector/Linkify.php b/library/HTMLPurifier/Injector/Linkify.php index 7ada1d7a..4269e7a4 100644 --- a/library/HTMLPurifier/Injector/Linkify.php +++ b/library/HTMLPurifier/Injector/Linkify.php @@ -16,7 +16,7 @@ HTMLPurifier_ConfigSchema::define( class HTMLPurifier_Injector_Linkify extends HTMLPurifier_Injector { - function handleText(&$token, $config, &$context) { + function handleText(&$token) { if (!$this->allowsElement('a')) return; if (strpos($token->data, '://') === false) { diff --git a/library/HTMLPurifier/Injector/PurifierLinkify.php b/library/HTMLPurifier/Injector/PurifierLinkify.php index d6f2e607..5b0dcce2 100644 --- a/library/HTMLPurifier/Injector/PurifierLinkify.php +++ b/library/HTMLPurifier/Injector/PurifierLinkify.php @@ -34,7 +34,7 @@ class HTMLPurifier_Injector_PurifierLinkify extends HTMLPurifier_Injector $this->docURL = $config->get('AutoFormatParam', 'PurifierLinkifyDocURL'); } - function handleText(&$token, $config, &$context) { + function handleText(&$token) { if (!$this->allowsElement('a')) return; if (strpos($token->data, '%') === false) return; diff --git a/library/HTMLPurifier/Strategy/MakeWellFormed.php b/library/HTMLPurifier/Strategy/MakeWellFormed.php index 3a8109cf..f78a59ed 100644 --- a/library/HTMLPurifier/Strategy/MakeWellFormed.php +++ b/library/HTMLPurifier/Strategy/MakeWellFormed.php @@ -109,7 +109,7 @@ class HTMLPurifier_Strategy_MakeWellFormed extends HTMLPurifier_Strategy if ($token->type === 'text') { // injector handler code; duplicated for performance reasons foreach ($this->injectors as $i => $x) { - if (!$x->skip) $x->handleText($token, $config, $context); + if (!$x->skip) $x->handleText($token); if (is_array($token)) { $this->currentInjector = $i; break; @@ -166,7 +166,7 @@ class HTMLPurifier_Strategy_MakeWellFormed extends HTMLPurifier_Strategy // injector handler code; duplicated for performance reasons foreach ($this->injectors as $i => $x) { - if (!$x->skip) $x->handleStart($token, $config, $context); + if (!$x->skip) $x->handleStart($token); if (is_array($token)) { $this->currentInjector = $i; break;