BUGFIX: Don't break CMS tree if HTML gets into MenuTitle

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77826 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-05-26 03:45:12 +00:00
parent fb16563961
commit 6eb61e0844

View File

@ -1764,7 +1764,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
$tag = '';
}
return ($tag) ? "<$tag>" . $this->MenuTitle . "</" . strtok($tag,' ') . ">" : $this->MenuTitle;
$text = Convert::raw2xml(str_replace(array("\n","\r"),"",$this->MenuTitle));
return ($tag) ? "<$tag>" . $text . "</" . strtok($tag,' ') . ">" : $text;
}
/**