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
DATABASE_URL parsing should turn numeric strings into numeric types, and
the strings true and false into boolean types, in order to match how
YAML would parse the same values from database.yml and prevent
unexpected type errors in the database adapters.
Merge pull request #9041 from sodabrew/patch-1

Convert int, float, and bools from ENV['DATABASE_URL'] query args
Extract the value casting to a method
Strict regexp
CHANGELOG review
Merge pull request #9133 from homakov/patch-6

Use \A in Regexps