소스 검색

N.441 Character "à" in a case log causing the REST/JSON API to fail if mbstring is not enabled

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4416 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 년 전
부모
커밋
302472abd6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/Html2Text.php

+ 1 - 1
application/Html2Text.php

@@ -79,7 +79,7 @@ class Html2Text {
 		// replace   with spaces
 
 		$html = str_replace(" ", " ", $html);
-		$html = mb_str_replace("\xa0", " ", $html); // DO NOT USE str_replace since it breaks the "à" character which is \xc3 \xa0 in UTF-8
+		$html = mb_str_replace("\xc2\xa0", " ", $html); // DO NOT USE str_replace since it breaks the "à" character which is \xc3 \xa0 in UTF-8
 
 		$html = static::fixNewlines($html);