Permalink
Browse files

Fixes a bug introduced with 0eb35c5 in string library.

  • Loading branch information...
JB Lebrun
JB Lebrun committed Oct 30, 2018
1 parent 30744d0 commit 6a612c42ad08c787be251a272e0c7aa980368671
Showing with 3 additions and 1 deletion.
  1. +3 −1 engine/lib/tool/string.php.inc
@@ -4,7 +4,7 @@
* @details Engine / Tool Library
* @file engine/lib/tool/string.php.inc
* @author CaMykS Team <camyks.contact@gmail.com>
* @version 1.0.4
* @version 1.0.5
* @date Creation: Oct 2007
* @date Modification: Oct 2018
* @copyright 2007 - 2018 CaMykS Team
@@ -172,9 +172,11 @@ function string_html2Text($string, $encoding=null) {
case 'utf8':
if ($camyks->get_confValue('server_encoding') != 'utf8')
return utf8_encode($string);
break;
case 'ISO-8859-1':
if (string_isUTF8($string))
return utf8_decode($string);
break;
default:
case '':
return $string;

0 comments on commit 6a612c4

Please sign in to comment.