Bug 72225 installer proxy values saved as wrong kind of pref, users can't

ever switch back to manual. r=ssu
This commit is contained in:
dveditz%netscape.com 2001-05-14 08:41:59 +00:00
Родитель 2029dbf1f2
Коммит b229b1c6b4
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -988,11 +988,11 @@ void UpdateJSProxyInfo()
{
if(diDownloadOptions.dwUseProtocol == UP_FTP)
wsprintf(szBuf,
"user_pref(\"network.proxy.ftp\", \"%s\");\n",
"pref(\"network.proxy.ftp\", \"%s\");\n",
diAdvancedSettings.szProxyServer);
else
wsprintf(szBuf,
"user_pref(\"network.proxy.http\", \"%s\");\n",
"pref(\"network.proxy.http\", \"%s\");\n",
diAdvancedSettings.szProxyServer);
}
@ -1000,15 +1000,15 @@ void UpdateJSProxyInfo()
{
if(diDownloadOptions.dwUseProtocol == UP_FTP)
wsprintf(szBuf,
"user_pref(\"network.proxy.ftp_port\", %s);\n",
"pref(\"network.proxy.ftp_port\", %s);\n",
diAdvancedSettings.szProxyPort);
else
wsprintf(szBuf,
"user_pref(\"network.proxy.http_port\", %s);\n",
"pref(\"network.proxy.http_port\", %s);\n",
diAdvancedSettings.szProxyPort);
}
lstrcat(szBuf, "user_pref(\"network.proxy.type\", 1);\n");
lstrcat(szBuf, "pref(\"network.proxy.type\", 1);\n");
fwrite(szBuf, sizeof(char), lstrlen(szBuf), fJSFile);
fclose(fJSFile);