about summary refs log tree commit diff stats
path: root/xxxterm.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-11-05 17:59:42 -0500
committerMarco Peereboom <marco@conformal.com>2011-11-05 17:59:42 -0500
commitf7b60d70d838228bbe96795b6793523b170650b8 (patch)
tree2c145ce80f00f86c1b57d9fa866a19024e8852dc /xxxterm.c
parent06e4023aef80e8d5fe4bc5aa220f223ee6f21185 (diff)
downloadxombrero-f7b60d70d838228bbe96795b6793523b170650b8.tar.gz
be more quiet
Diffstat (limited to 'xxxterm.c')
-rw-r--r--xxxterm.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 03aa39b..168ef27 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -3905,20 +3905,14 @@ js_autorun(struct tab *t)
 	uri = get_uri(t);
 	if (uri &&
 	    !(g_str_has_prefix(uri, "http://") ||
-	    g_str_has_prefix(uri, "https://"))) {
-		show_oops(t, "invalid uri");
+	    g_str_has_prefix(uri, "https://")))
 		goto done;
-	}
 
 	su = soup_uri_new(uri);
-	if (su == NULL) {
-		show_oops(t, "invalid soup URI");
+	if (su == NULL)
 		goto done;
-	}
-	if (!SOUP_URI_VALID_FOR_HTTP(su)) {
-		show_oops(t, "invalid HTTPS URI");
+	if (!SOUP_URI_VALID_FOR_HTTP(su))
 		goto done;
-	}
 
 	DNPRINTF(XT_D_JS, "%s: host: %s domain: %s\n", __func__,
 	    su->host, domain);