diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index 36ce6e403a5..c5945736b6e 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -862,8 +862,11 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress, if(keywordsEnabled && (-1 == dotLoc)) { // only send non-qualified hosts to the keyword server + nsCAutoString keywordSpec("keyword:"); + keywordSpec += host; + NS_NewURI(getter_AddRefs(newURI), - NS_LITERAL_CSTRING("keyword:") + host, nsnull); + keywordSpec, nsnull); } // end keywordsEnabled }