So I think I found the fix.
I had my Images directory under Admin=>Directories to the following:
The Image Upload URL under Admin=>Resource URLS to the following:
When I upgraded to 4.6.2 is when I started getting the error. I checked that line in the Security.php file and it referred to the uploadurl as samuelsov stated. So I thought I'd try changing that to something else and see if it fixed it.
I changed the Images director under Admin=>Directories to the following:
And changed the Image Upload URL under Admin=>Resource URLS to the following:
I went and refreshed and no more error. So it appears that civi 4.6.2 doesn't like the upload directory to be at the root