Commit Graph

140 Commits

Author SHA1 Message Date
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Arnaud Le Blanc
eef1ad9ddf [DOC] Added ENT_IGNORE as a compatibility flag for htmlentities() and
htmlspecialchars() to skip multibyte sequences intead of returning an
empty string (as iconv's //IGNORE). These functions will still never
return an invalid or incomplete multibyte sequence.
Example: htmlspecialchars("...", ENT_QUOTES | ENT_COMPAT, "utf-8");
2008-11-26 02:57:32 +00:00
Arnaud Le Blanc
763a92d7e0 MFB 5.2 2008-11-26 02:43:43 +00:00
Arnaud Le Blanc
5ef7ecafc1 initialize optional vars 2008-10-21 22:06:49 +00:00
Moriyoshi Koizumi
ab976fe2d4 - Beware of signedness 2008-08-18 03:26:06 +00:00
Arnaud Le Blanc
eebec53bc0 Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items) 2008-08-10 13:25:53 +00:00
Felipe Pena
f6639abf7d MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument) 2008-04-11 19:08:05 +00:00
Stanislav Malyshev
67c08a57dc no sleep here either 2008-01-29 22:03:44 +00:00
Antony Dovgal
bc9cba1a93 MFB: fix #43927 (koi8r is missing from html_entity_decode())
patch by andy at demos dot su
2008-01-28 23:08:07 +00:00
Scott MacVicar
43c5d044d0 MFB: Fix html_entity_decode when converting numeric html entities, the numeric values for the extended character set don't correspond to that of windows-1251 and cp866. 2008-01-25 18:11:19 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Jani Taskinen
80518808e7 - Revert previous patch, it was correct to do this, error is logged if logging is enabled 2007-12-11 12:25:52 +00:00
Jani Taskinen
efc8a64eb3 - Fix error display (Stas: PG(display_errors) is handled by the php_error_docref() function :) 2007-12-11 11:28:43 +00:00
Stanislav Malyshev
cbe036de9b MFB do not accept partial multibyte sequences in html* functions 2007-10-03 05:07:31 +00:00
Jani Taskinen
41c6375840 - Moved the old regex functions to it's own extension: ereg 2007-07-15 19:50:07 +00:00
Antony Dovgal
b608bd654d fix ws, cs & folding 2007-07-14 08:38:20 +00:00
Dmitry Stogov
ac60cdd0ba MFB htmlentities() / htmlspecialchars() "don't double encode" flag support 2007-07-10 15:12:15 +00:00
Antony Dovgal
97c8b1d13e more snprintf() 2007-01-18 16:21:00 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
e2b3141df2 fix leak on error 2006-12-21 01:13:50 +00:00
Andrei Zmievski
f2ab79dfc7 Unicode support in get_html_translation_table(). 2006-11-22 22:18:46 +00:00
Andrei Zmievski
dc5f913920 Unicode support in entities/special chars funcs. See the NOTE at the
top.
2006-11-06 21:45:49 +00:00
Ilia Alshanetsky
3482d76823 MFB: Added missing boundary checks. 2006-11-01 01:56:21 +00:00
Hannes Magnusson
9c669ecf1f Protos 2006-10-02 07:54:37 +00:00
Antony Dovgal
3431cc4a1f don't try to use "auto", "none" and "pass" charsets returned from mbstring 2006-08-15 15:09:21 +00:00
Dmitry Stogov
c366cc6d1a Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings 2006-03-02 13:12:45 +00:00
Rasmus Lerdorf
f16846e685 Binary safety patch from Moriyoshi 2006-02-25 21:30:32 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
foobar
6cea418c31 Netware also uses autoconf based config now 2005-06-30 14:11:13 +00:00
Joe Orton
5815b03511 Mark pointers in entity tables as const. 2005-05-11 12:54:29 +00:00
Joe Orton
bd2e99ee50 - Fixed bug #29119 (html_decode_entities handling of U+0152-U+0192 range)
(merge error from 4.3)
2005-05-11 12:43:07 +00:00
Ilia Alshanetsky
8209835e5a Fixed bug #32608 (html_entity_decode() converts single quotes even if
ENT_NOQUOTES is given).
2005-05-01 19:48:55 +00:00
Joe Orton
3796738681 Fix /*-within-comment warning from GCC. 2005-03-10 11:19:32 +00:00
Derick Rethans
16d67ab9f5 - MF43: Fixed bug #28067 (partially incorrect utf8 to htmlentities mapping). 2005-03-09 10:13:05 +00:00
Ilia Alshanetsky
0dbe348d1d Improve the performance of htmlspecialchars_decode() by 20-30%. 2005-03-08 21:13:03 +00:00
Ilia Alshanetsky
975ff6f5d5 Added htmlspecialchars_decode() function for fast conversion from
htmlspecialchars() generated entities back to characters.
2005-03-07 19:37:27 +00:00
Ilia Alshanetsky
96d7eebce8 Make html_entity_decode() 15-20% faster by avoiding pointless string
duplication.
2005-03-06 19:36:51 +00:00
Moriyoshi Koizumi
20a5a1d61c - Fix the fix :) 2005-01-11 20:58:46 +00:00
Moriyoshi Koizumi
ee18958f98 - Fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
2005-01-11 20:44:04 +00:00
foobar
a139dbf9cc - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
Moriyoshi Koizumi
46bc2c5ae2 - Fix bug #29199 (html_entity_decode() misbehaves with UTF-8) 2004-07-19 17:46:30 +00:00
Wez Furlong
cfb84391d0 add missing break 2004-07-13 17:14:49 +00:00
Derick Rethans
c8c5e8bbe6 - MFH: Fix for bug #28042 (greek letters in html to entitity mapping not
correct)
2004-04-17 23:08:02 +00:00
Ilia Alshanetsky
bf6b0dc5e6 Fixed bug #27505 (htmlentities() does not handle BIG5 correctly). 2004-03-06 18:35:41 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Derick Rethans
d78e453c36 - Test before commit - test before commit 2003-12-10 21:02:33 +00:00
Derick Rethans
009e8498c3 - Added support for MacRoman encoding to htmlentities(). (Marcus Bointon) 2003-12-10 18:17:23 +00:00
Moriyoshi Koizumi
bde1fe4d81 Missing '&' in the result of get_html_translation_table() 2003-10-21 01:46:54 +00:00