From: SourceForge.net <no...@so...> - 2007-06-26 12:42:00
|
Bugs item #1730546, was opened at 2007-06-04 04:42 Message generated for change (Comment added) made by xzilla You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=418980&aid=1730546&group_id=37132 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: 4.1.2 Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: dna (naucki) >Assigned to: Robert Treat (xzilla) Summary: charset `US-ASCII' not supported Initial Comment: I upgraded from 4.1 to 4.1.2 and now get following error after login: Warning: htmlspecialchars() [function.htmlspecialchars]: charset `US-ASCII' not supported, assuming iso-8859-1 in /var/www/phpPgAdmin-4.1.2/libraries/lib.inc.php on line 224 Warning: Cannot modify header information - headers already sent by (output started at /var/www/phpPgAdmin-4.1.2/libraries/lib.inc.php:224) in /var/www/phpPgAdmin-4.1.2/classes/Misc.php on line 359 phpPgAdmin 4.1.2 (PHP 5.2.0-8+etch4) I had not problems with the same config on 4.1 ---------------------------------------------------------------------- >Comment By: Robert Treat (xzilla) Date: 2007-06-26 08:42 Message: Logged In: YES user_id=204589 Originator: NO For anyone who has run across this issue, please check out the new 4.1.3-rc-1 release, which should fix these issues. ---------------------------------------------------------------------- Comment By: Jan Normann Nielsen (normann1974) Date: 2007-06-04 05:28 Message: Logged In: YES user_id=671213 Originator: NO The bug can be circumvented until an official bug fix has been released by changing $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, $lang['appcharset']); to $PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'ISO-8859-1'); in libraries/lib.inc.php. The link in my previous comment should have been: http://dk2.php.net/htmlspecialchars ---------------------------------------------------------------------- Comment By: Jan Normann Nielsen (normann1974) Date: 2007-06-04 05:19 Message: Logged In: YES user_id=671213 Originator: NO I have the exact same problem. It's because in libraries/lib.inc.php, $lang['appcharset'] has been set to the value of the database encoding (lines 209-213) instead of the value set in 'lang/english.php' (in my case). The PHP code should probably check if the charset is supported (http://dk2.php.net/htmlentities) before passing it to htmlspecialchars. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=418980&aid=1730546&group_id=37132 |