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:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user