aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EventContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EventContext.cpp')
-rw-r--r--embed/mozilla/EventContext.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index 2af47d56d..1ed3e1b29 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -802,14 +802,14 @@ nsresult EventContext::CheckLinkScheme (const nsAString &link)
rv = uri->GetScheme (scheme);
if (NS_FAILED (rv)) return NS_ERROR_FAILURE;
- if (g_ascii_strcasecmp (scheme.get(), "http") ||
- g_ascii_strcasecmp (scheme.get(), "https") ||
- g_ascii_strcasecmp (scheme.get(), "ftp") ||
- g_ascii_strcasecmp (scheme.get(), "file") ||
- g_ascii_strcasecmp (scheme.get(), "data") ||
- g_ascii_strcasecmp (scheme.get(), "resource") ||
- g_ascii_strcasecmp (scheme.get(), "about") ||
- g_ascii_strcasecmp (scheme.get(), "gopher"))
+ if (g_ascii_strcasecmp (scheme.get(), "http") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "https") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "ftp") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "file") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "data") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "resource") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "about") == 0 ||
+ g_ascii_strcasecmp (scheme.get(), "gopher") == 0)
{
SetIntProperty ("link-has-web-scheme", TRUE);
}