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:
parent
56b050f337
commit
c17922668b
@ -2130,8 +2130,12 @@ BString
|
||||
BrowserWindow::_SmartURLHandler(const BString& url) const
|
||||
{
|
||||
BString result = url;
|
||||
if (url.FindFirst(".") == B_ERROR || url.FindFirst(" ") != B_ERROR)
|
||||
result.Prepend("http://www.google.com/search?q=");
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user