php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43927 koi8r missed in php_unescape_html_entities()
Submitted: 2008-01-24 14:47 UTC Modified: 2008-01-28 23:09 UTC
From: andy at demos dot su Assigned:
Status: Closed Package: Strings related
PHP Version: 5.2.5 OS: FreeBSD
Private report: No CVE-ID: None
 [2008-01-24 14:47 UTC] andy at demos dot su
Description:
------------
In php_unescape_html_entities() function (ext/standard/html.c)
one forgot about koi8-r encoding:

--- html.c.orig Wed Oct 3 08:53:05 2007
+++ html.c Thu Jan 24 17:44:11 2008
@@ -954,6 +954,7 @@
  case cs_cp1251:
  case cs_8859_5:
  case cs_cp866:
+ case cs_koi8r:
  replacement[0] = k;
  replacement[1] = '\0';
  replacement_len = 1;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-28 23:08 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC