r=pedemont, sr=blizzard
OS/2 only - quote filenames in helpers
This commit is contained in:
mkaply%us.ibm.com 2002-09-17 21:10:30 +00:00
Родитель 78b1140890
Коммит 9ddc653193
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -154,7 +154,12 @@ NS_IMETHODIMP nsOSHelperAppService::LaunchAppWithTempFile(nsIMIMEInfo * aMIMEInf
{
// if we were given an application to use then use it....otherwise
// make the registry call to launch the app
/* Put quotes around path to handle spaces */
path.Insert('\"', 0);
path.Append('\"');
const char * strPath = path.get();
nsCOMPtr<nsIProcess> process = do_CreateInstance(NS_PROCESS_CONTRACTID);
nsresult rv;
if (NS_FAILED(rv = process->Init(application)))
@ -1165,6 +1170,7 @@ NS_IMETHODIMP nsOSHelperAppService::LoadUrl(nsIURI * aURL)
if (pos != kNotFound) {
nsCAutoString uURL;
aURL->GetSpec(uURL);
NS_UnescapeURL(uURL);
uURL.Cut(0, uProtocol.Length()+1);
parameters.Replace(pos, url.Length(), uURL);
}