Skip to content
Permalink
Browse files

[SS-2016-007] FIX Encode user supplied URL for embeding into page

  • Loading branch information...
dhensby authored and Damian Mooyman committed May 3, 2016
1 parent 049cdef commit 3fa84cf0c64a539d78600c36364817a8e38411d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 control/VersionedRequestFilter.php
@@ -23,7 +23,7 @@ public function preRequest(SS_HTTPRequest $request, Session $session, DataModel
'You must log in with your CMS password in order to view the draft or archived content. '.
'<a href="%s">Click here to go back to the published site.</a>'
),
Controller::join_links(Director::baseURL(), $request->getURL(), "?stage=Live")
Convert::raw2xml(Controller::join_links(Director::baseURL(), $request->getURL(), "?stage=Live"))
);
// Force output since RequestFilter::preRequest doesn't support response overriding

0 comments on commit 3fa84cf

Please sign in to comment.
You can’t perform that action at this time.