зеркало из https://github.com/mozilla/pjs.git
r=pedemont, sr=blizzard OS/2 only - quote filenames in helpers
This commit is contained in:
Родитель
78b1140890
Коммит
9ddc653193
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче