Fixed about: URL's from crashing the viewer.

git-svn-id: svn://10.0.0.236/trunk@2181 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jevering
1998-05-22 18:10:08 +00:00
parent 483b518e3e
commit 7c150df597
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ void nsHTMLDocument::LoadURL(nsIURL* aURL)
// XXX temporary hack code
static NS_DEFINE_IID(kPostToServerIID, NS_IPOSTTOSERVER_IID);
const char* temp = aURL->GetFile();
if (strcmp(temp,"/cgi-bin/post-query") == 0) {
if (temp != NULL && strcmp(temp,"/cgi-bin/post-query") == 0) {
nsIPostToServer* pts;
nsresult result = aURL->QueryInterface(kPostToServerIID, (void **)&pts);
if (NS_OK == result) {

View File

@@ -95,7 +95,7 @@ void nsHTMLDocument::LoadURL(nsIURL* aURL)
// XXX temporary hack code
static NS_DEFINE_IID(kPostToServerIID, NS_IPOSTTOSERVER_IID);
const char* temp = aURL->GetFile();
if (strcmp(temp,"/cgi-bin/post-query") == 0) {
if (temp != NULL && strcmp(temp,"/cgi-bin/post-query") == 0) {
nsIPostToServer* pts;
nsresult result = aURL->QueryInterface(kPostToServerIID, (void **)&pts);
if (NS_OK == result) {