From f8cd876217819eeeb1bd699ff33d287fb4ba4b5c Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Wed, 18 Nov 2015 13:19:05 +0000 Subject: [PATCH] Fixing regression from #4733 --- forms/HtmlEditorField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index f9f58e747..f5a72a74c 100644 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -578,7 +578,7 @@ class HtmlEditorField_Toolbar extends RequestHandler { // Similar to the regex found in HtmlEditorField.js / getAnchors method. if (preg_match_all("/\s(name|id)=\"([^\"]+?)\"|\s(name|id)='([^']+?)'/im", $page->Content, $matches)) { - $anchors = $matches[1]; + $anchors = array_filter(array_merge($matches[2], $matches[4])); } } else {