mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-02 22:28:37 +02:00
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:
parent
5f4422f54a
commit
c77105e517
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user