mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
captive: Escape any special characters in title on PDF vouchers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -5,6 +5,7 @@ etc/rc.d/init.d/apache
|
||||
etc/ssl/certs/ca-bundle.crt
|
||||
etc/ssl/certs/ca-bundle.trust.crt
|
||||
opt/pakfire/lib/functions.pl
|
||||
srv/web/ipfire/cgi-bin/captive.cgi
|
||||
srv/web/ipfire/cgi-bin/country.cgi
|
||||
srv/web/ipfire/cgi-bin/logs.cgi/config.dat
|
||||
srv/web/ipfire/cgi-bin/logs.cgi/firewalllog.dat
|
||||
|
||||
@@ -757,7 +757,7 @@ sub generate_pdf() {
|
||||
$f_subheadline->translate($cx, ($y + $h - $cy) / 2.4 + $cy);
|
||||
|
||||
if ($settings{'TITLE'}) {
|
||||
$f_headline->text_center($settings{'TITLE'});
|
||||
$f_headline->text_center(decode("utf8", $settings{'TITLE'}));
|
||||
$f_subheadline->text_center(decode("utf8", $Lang::tr{'Captive WiFi coupon'}));
|
||||
} else {
|
||||
$f_headline->text_center(decode("utf8", $Lang::tr{'Captive WiFi coupon'}));
|
||||
|
||||
Reference in New Issue
Block a user