Upgrade from rc3 to rc4 - htmlspecialchars() system warning

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Pawel
Posts: 8
Joined: 16 Dec 2005, 10:46
Location: Poznan, Poland

Upgrade from rc3 to rc4 - htmlspecialchars() system warning

Post by Pawel »

After upgrading Mantis from version 1.0.0rc3 to 1.0.0rc4, following warning is displayed at login page:

SYSTEM WARNING: htmlspecialchars(): charset `iso-8859-2' not supported, assuming iso-8859-1

After loging in, that warning is displayed in every field where polish chars were used.
Upgrade was made with /admin/install.php script.
MaKARON
Posts: 13
Joined: 12 Dec 2005, 12:02
Location: Olkusz / Poland
Contact:

quickfix

Post by MaKARON »

strings_api.php

change line 663 to

return htmlspecialchars( $p_string, ENT_COMPAT );// mkk_fix NIE MA ISO-8859-2, lang_get( 'charset' ) );
Pawel
Posts: 8
Joined: 16 Dec 2005, 10:46
Location: Poznan, Poland

thanks

Post by Pawel »

Thanks, it works now.
To be precise, I've changed line:

return htmlspecialchars( $p_string, ENT_COMPAT, lang_get( 'charset' ));

to

return htmlspecialchars( $p_string, ENT_COMPAT );
Post Reply