fix for #20198. always append the profile name to the native path the user
specifies. this prevents the users from accidently removing more than they expect when they delete the profile. fix by racham, r=sspitzer
This commit is contained in:
Родитель
7a493ed3db
Коммит
d92415acfb
|
@ -1058,6 +1058,13 @@ NS_IMETHODIMP nsProfile::CreateNewProfile(const char* profileName, const char* n
|
|||
}
|
||||
else {
|
||||
dirSpec = nativeProfileDir;
|
||||
|
||||
// this prevents people from choosing there profile directory
|
||||
// or another directory, and remove it when they delete the profile
|
||||
//
|
||||
// append profile name
|
||||
dirSpec += profileName;
|
||||
dirSpec.MakeUnique();
|
||||
}
|
||||
|
||||
#if defined(DEBUG_profile)
|
||||
|
|
Загрузка…
Ссылка в новой задаче