force gopher port to default: sr=attinasi, r=jag b=71916

This commit is contained in:
attinasi%netscape.com 2001-03-14 06:43:00 +00:00
Родитель 80a677d2ec
Коммит 24d6f0a387
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -86,8 +86,13 @@ nsGopherChannel::Init(nsIURI* uri)
if (NS_FAILED(rv))
return rv;
// For security reasons, don't allow anything expect the default
// gopher port (70). See bug 71916 - bbaetz@cs.mcgill.ca
/*
if (mPort==-1)
mPort=GOPHER_PORT;
*/
mPort=GOPHER_PORT;
// No path given
if (buffer[0]=='\0' || (buffer[0]=='/' && buffer[1]=='\0')) {