aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-02 00:39:21 +0100
committerSebastian Geerken <devnull@localhost>2015-01-02 00:39:21 +0100
commit974f88a4adc3ef460ad00ba3d398f697c8812393 (patch)
tree55c88aad376ae3d6a0a2f714c9f55673d9d989ef /src/html.cc
parentecb8be82abafc3c7580cdeed4c8902b44bd06ae5 (diff)
parent86e780e73a11e8b9d1d57cb5f283c4fee6ca68e8 (diff)
Merge with main repo.
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index c17db53a..be4d3526 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3202,8 +3202,12 @@ static void Html_tag_open_meta(DilloHtml *html, const char *tag, int tagsize)
} else if (delay == 0) {
/* zero-delay redirection */
html->stop_parser = true;
- if (a_Capi_dpi_verify_request(html->bw, new_url))
+ if (URL_FLAGS(html->base_url) & URL_SpamSafe) {
+ a_UIcmd_set_msg(html->bw,
+ "WARNING: local URL with META refresh. Aborting.");
+ } else if (a_Capi_dpi_verify_request(html->bw, new_url)) {
a_UIcmd_redirection0((void*)html->bw, new_url);
+ }
} else {
/* Send a custom HTML message.
* TODO: This is a hairy hack,