Hello Michael, is it okay for you if we insert the base64 encoded image into the HTML page during running a Pakfire build? That way, we won't need a CGI nor execute this sever-side multiple times. I thought of a sed-command in an lfs file... Best regards, Peter Müller > Hello, > > although I generally agree with the fix, this is not the best solution. When > ever the image file is changed, this needs to be manually changed, too. That's > not nice. > > It would be better to read the image file when rendering the HTML output and > encoding it into base64 on the fly. > > Best, > -Michael > > On Sat, 2018-06-16 at 20:48 +0200, Peter Müller wrote: >> Embed the IPFire background image into the redirect template >> directly via CSS instead of loading it from somewhere else. > >> This is necessary because of Content Security Policy (CSP) and >> fixes #11650. > >> Signed-off-by: Peter Müller >> --- >> html/html/redirect-templates/legacy/template.html | 8 +++++++- >> 1 file changed, 7 insertions(+), 1 deletion(-) > >> diff --git a/html/html/redirect-templates/legacy/template.html >> b/html/html/redirect-templates/legacy/template.html >> index b5fb61ebe..8a6a563a3 100644 >> --- a/html/html/redirect-templates/legacy/template.html >> +++ b/html/html/redirect-templates/legacy/template.html >> @@ -3,11 +3,17 @@ >> >> >> ACCESS MESSAGE >> + >> >> >> >> >> - >> >>
> align="center" background="/images/background.gif"> >> + > align="center" class="image"> 
>> > width='80%'> > -- "We don't care. We don't have to. We're the Phone Company."