silverstripe/sapphire — pull request #85 by stojg (2011-10-29 02:04:35+00:00)
Title: MINOR Redirect user to homepage if the BackURL have been set to another site

This might indicatate a spoofing attack.

I also extracted code into it's own method to make it easier to read and maintain.