зеркало из https://github.com/mozilla/pjs.git
fix bug 81203. change ISO-8859-1 to windows-1252 for form submission
r=brade sr=kin
This commit is contained in:
Родитель
cd77d3b7fb
Коммит
c2263fe771
|
@ -1166,6 +1166,8 @@ NS_IMETHODIMP nsFormFrame::GetEncoder(nsIUnicodeEncoder** encoder)
|
||||||
NS_GET_IID(nsICharsetConverterManager),
|
NS_GET_IID(nsICharsetConverterManager),
|
||||||
(nsISupports**)&ccm);
|
(nsISupports**)&ccm);
|
||||||
if(NS_SUCCEEDED(rv) && (nsnull != ccm)) {
|
if(NS_SUCCEEDED(rv) && (nsnull != ccm)) {
|
||||||
|
if(charset.Equals(NS_LITERAL_STRING("ISO-8859-1")))
|
||||||
|
charset.Assign(NS_LITERAL_STRING("windows-1252"));
|
||||||
rv = ccm->GetUnicodeEncoder(&charset, encoder);
|
rv = ccm->GetUnicodeEncoder(&charset, encoder);
|
||||||
nsServiceManager::ReleaseService( kCharsetConverterManagerCID, ccm);
|
nsServiceManager::ReleaseService( kCharsetConverterManagerCID, ccm);
|
||||||
if (nsnull == encoder) {
|
if (nsnull == encoder) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче