From 94c91bb5ba8cfbbe69fa9cd84a7cfff8c5e25bd3 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 25 Nov 2014 19:14:17 +0000 Subject: don't load background images in --local mode --- src/styleengine.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/styleengine.cc b/src/styleengine.cc index a5c43bf4..e07ab3d5 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -708,7 +708,9 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props, } } - if (imgUrl && prefs.load_background_images && attrs->display != DISPLAY_NONE) + if (imgUrl && prefs.load_background_images && + attrs->display != DISPLAY_NONE && + !(URL_FLAGS(pageUrl) & URL_SpamSafe)) { attrs->backgroundImage = StyleImage::create(); DilloImage *image = -- cgit v1.2.3