PacketFence - BTS - PacketFence | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001287 | PacketFence | captive portal | public | 2011-09-28 13:54 | 2011-10-24 20:17 |
Reporter | obilodeau | ||||
Assigned To | francis | ||||
Priority | normal | Severity | minor | Reproducibility | random |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | OS Version | ||
Product Version | |||||
Target Version | 3.0.2 | Fixed in Version | 3.0.2 | ||
fixed in git revision | |||||
fixed in mtn revision | |||||
Summary | 0001287: Unreliable encoding behavior messes up with translations | ||||
Description | Default apache and perl CGI charset is set to ISO-8859-1. It works most of the time but we faced a situation where it didn't. Can be fixed in two stages: --- pf/conf/httpd.conf.apache22 a261d69b389f0d9a00a66cd82fdbca52f12f37c3 +++ pf/conf/httpd.conf.apache22 8a42bf3e66bc88774fd73677c32499120b567451 @@ -33,8 +33,7 @@ ErrorLog %%install_dir%%/logs/error_log LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined ErrorLog %%install_dir%%/logs/error_log -AddDefaultCharset ISO-8859-1 -AddCharset ISO-8859-1 .iso8859-1 .latin1 +AddDefaultCharset UTF-8 AddHandler cgi-script .cgi TypesConfig /etc/mime.types and change all the instances of print $cgi->header(... @@ -348,7 +348,7 @@ sub generate_error_page { } my $cookie = $cgi->cookie( CGISESSID => $session->id ); - print $cgi->header( -cookie => $cookie ); + print $cgi->header( -cookie => $cookie, -charset => 'utf-8' ); my $template = Template->new( { INCLUDE_PATH => [$CAPTIVE_PORTAL{'TEMPLATE_DIR'}], } ); $template->process( "error.html", $vars, $r ); | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-09-28 13:54 | obilodeau | New Issue | |||
2011-09-29 13:36 | francis | Note Added: 0002303 | |||
2011-09-29 14:00 | francis | Note Added: 0002304 | |||
2011-09-29 14:00 | francis | Status | new => resolved | ||
2011-09-29 14:00 | francis | Resolution | open => fixed | ||
2011-09-29 14:00 | francis | Assigned To | => francis | ||
2011-09-29 14:00 | francis | Fixed in Version | => +1 | ||
2011-10-24 20:15 | obilodeau | Target Version | +1 => 3.0.2 | ||
2011-10-24 20:15 | obilodeau | Note Added: 0002388 | |||
2011-10-24 20:16 | obilodeau | Status | resolved => closed | ||
2011-10-24 20:17 | obilodeau | Fixed in Version | +1 => 3.0.2 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|