-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Yes, you can have a placeholder in the CGI file and replace it at build time with the image file. - -Michael On Wed, 2018-06-27 at 23:10 +0200, Peter Müller wrote: > 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=" > > NAME="ADDRESS">/images/background.gif"> > > > + > > height='152px' > > > align="center" class="image"> 
> > > > > width='80%'> > > -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE5/rW5l3GGe2ypktxgHnw/2+QCQcFAls0zc0ACgkQgHnw/2+Q CQeBUg//e3Jad8ovpKBkhlvPLTp6uTQDbSD2Y7u00cjQ/Lycgej63g2hsITQgzhE FbhblFSGI+GAgjZLnUqVOsmAphkVu3dMT1hzaGEIJitoNsSC8UUJMy3grB0vpaPf Jur2K3bzWJTGJeQr5cWfPX7uBNCdk7SJa32BVdlwpzyaNGVjDJ2y0FbUSMZ6atoD jAChCGyq6QNCTTAvqZTE6I8rrKsDI+CyQPFQKk7mrrwFhlgLBbaeliIINcT6FMuy ap0sC6SfGReWrXgPdZpyl8lORRofm2lzsnSosI70Q3KnBECkiCvd0rf3y9ifnEiR PL4dTwliJLA6GH8ibXXGowp9xyp1Gkxsg+g4Zi04neam/ZMm7CIFUpU5lxHNc656 UynCS+xidnZAJmvIBPnT666wjHzzXcSaTuskVKPJFuxqhgqOXaxzSZEO7vKmLwFR 8K98IC0fPGwAS5WSxN6NjchUzRlJHlc7/gOry73E5n5xbtEmnqi9PhD7fWwG24r/ hu3kUwqsoKlFjSlJ98Ncbw+NQWnsHrVtNQPtDAp6C71aRJzP01+NwDxaWo/f/kx0 HJbD6XIMuPb71FP08/D4IvSXAHdhkgKFmGnIOPC7ppSOZ8eGV1wl7ivALETvOt2/ Y7aL6v2novKxMMtMZrXiWWEeGTQnsNvHNq75OnKMMWt4KjMF52k= =BOwA -----END PGP SIGNATURE-----