Don't do the "smart URL handling" (also known as dumb URL handling) for file:// URLs.

Fixes #7596.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@579 94f232f2-1747-11df-bad5-a5bfde151594
This commit is contained in:
leavengood 2011-06-01 20:06:11 +00:00 committed by Alexandre Deckner
parent 56b050f337
commit c17922668b

View File

@ -2130,8 +2130,12 @@ BString
BrowserWindow::_SmartURLHandler(const BString& url) const
{
BString result = url;
// Only process if the URL is not for a local file
if (url.FindFirst("file://") == B_ERROR) {
if (url.FindFirst(".") == B_ERROR || url.FindFirst(" ") != B_ERROR)
result.Prepend("http://www.google.com/search?q=");
}
return result;
}