hpoley: #1871 - Escape RedirectorPage::Link()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46732 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2007-12-13 00:46:01 +00:00
parent 5f4422f54a
commit c77105e517

View File

@ -34,7 +34,7 @@ class RedirectorPage extends Page {
function Link() {
if($this->RedirectionType == 'External') {
return $this->ExternalURL;
return Convert::raw2att($this->ExternalURL);
} else {
$linkTo = $this->LinkToID ? DataObject::get_by_id("SiteTree", $this->LinkToID) : null;
if($linkTo) {