Use \A in Regexps

So, if there is redirect_to params[:q]
i can send ?q=javascript:asdf()%0A/localpath
Or something more nasty, so please use \A
Merge pull request #9133 from homakov/patch-6

Use \A in Regexps