зеркало из https://github.com/mozilla/gecko-dev.git
force gopher port to default: sr=attinasi, r=jag b=71916
This commit is contained in:
Родитель
80a677d2ec
Коммит
24d6f0a387
|
@ -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')) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче