Fixing regression from #4733

This commit is contained in:
Daniel Hensby 2015-11-18 13:19:05 +00:00
parent 43e4eb129a
commit f8cd876217

View File

@ -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 {