Moriyoshi Koizumi
647408978e
Fixed bug #25707 (html_entity_decode over-decodes <)
2003-10-02 06:57:21 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Moriyoshi Koizumi
ea39409c60
Added missing break
2003-05-08 16:45:59 +00:00
Moriyoshi Koizumi
e911b39158
Added "€" support for htmlentities() and html_entity_decode()
2003-05-08 15:43:34 +00:00
Moriyoshi Koizumi
ee86979e21
I should have tested more carefully..
2003-05-08 15:39:24 +00:00
Moriyoshi Koizumi
6ed4fd1666
Improved html_entity_decode() so it can handle multibyte charsets and
...
numeric entities.
2003-05-08 10:42:20 +00:00
Moriyoshi Koizumi
b874a54846
Added links to HTML entity resources
2003-05-05 19:50:15 +00:00
Moriyoshi Koizumi
7638a25fef
Fixed bug #23449
2003-05-02 11:00:42 +00:00
David Hill
cec89b2446
Fix compiler error on null statement in switch
2003-04-24 18:01:26 +00:00
Rasmus Lerdorf
0d248d81a6
MFB: &039; which is a single-quote may also come in as &39;
...
I see no reason not to support both in html_entity_decode()
2003-04-22 20:47:09 +00:00
Moriyoshi Koizumi
570e929d49
Fixed bug #22834 (compile failure due to ugly implicit casts)
2003-03-24 21:22:23 +00:00
Moriyoshi Koizumi
93b250f923
Added koi8-r, cp866, and cp1251 support for htmlentities
2003-03-24 19:13:02 +00:00
Stefan Esser
1f54605723
wrong place.
2003-03-08 14:51:16 +00:00
Stefan Esser
76c427fd05
fixing memory leak
2003-03-08 14:37:01 +00:00
David Hill
5c90216d2c
64-bit correction to variables passed to zend_parse_parameters
...
@64-bit correction to variables passed to zend_parse_parameters (Dave)
2003-03-06 23:07:28 +00:00
Ilia Alshanetsky
d2e2fbcc5b
int/long change.
2003-02-22 20:33:11 +00:00
Ilia Alshanetsky
38ad0e9104
zend_error -> php_error_docref.
2003-01-24 16:29:40 +00:00
Anantha Kesari H Y
830298beb8
Modified for NetWare.
2003-01-03 14:37:42 +00:00
Ilia Alshanetsky
0ff59a1353
Fixed bug #21338 (crash inside html_entity_decode() when "" is passed).
...
Added test case for the bug.
2003-01-02 19:49:30 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Ilia Alshanetsky
53b333d153
Fixed misspelling of the Greek letter lambda,
...
noticed by jmartin-php@notamusica.com .
2002-12-12 14:50:58 +00:00
Moriyoshi Koizumi
3bbcb0d0dd
Fixed bug #20934 (htmlspecialchars returns latin1 from UTF-8)
2002-12-12 13:25:51 +00:00
Sebastian Bergmann
47388f2121
Fix Win32 build.
2002-11-16 08:30:31 +00:00
Moriyoshi Koizumi
7222abda70
Include php_config.h for HAVE_MBSTRING
2002-11-15 16:13:36 +00:00
Moriyoshi Koizumi
f300bdce82
Added support for windows code pages.
2002-11-11 13:31:08 +00:00
Moriyoshi Koizumi
488255ce54
WS
2002-11-11 13:28:34 +00:00
Moriyoshi Koizumi
f498b68c05
WS fix
2002-10-29 15:05:07 +00:00
Moriyoshi Koizumi
16fc9f6539
Fix build if mbstring is enabled as shared extension.
2002-10-25 13:12:05 +00:00
Moriyoshi Koizumi
d347143fe1
Improved determine_charset() to look up SG(default_charset) value
2002-10-24 22:04:28 +00:00
Moriyoshi Koizumi
429f8fa6d7
Fixed ISO-8859-1 handling.
2002-10-24 21:10:45 +00:00
Moriyoshi Koizumi
f2269ef4a3
Added € support to cp1252 table
2002-10-24 19:52:30 +00:00
Marcus Boerger
37d2a1dd08
fix warning
2002-10-23 23:09:08 +00:00
Moriyoshi Koizumi
68a5d1bca3
Improved determine_charset() to use mbstring.internal_encoding when the last
...
param is a null string. (If the param is omitted, it takes iso-8859-1 as
the default charset in favour of backwards compatibility.)
2002-10-22 20:11:48 +00:00
Andrey Hristov
ae70a4e458
few ws fixes.
2002-10-03 12:06:52 +00:00
Sebastian Bergmann
b5d4b5496d
Fix ZTS build.
2002-09-26 18:13:32 +00:00
Wez Furlong
4d9d06c874
Emit a warning when an unsupported charset is requested in htmlentities.
...
Fixed #18521 .
2002-09-26 16:07:14 +00:00
Wez Furlong
a12423f959
Fix for #19570 : last character in translation table is omitted.
2002-09-24 10:05:45 +00:00
Rasmus Lerdorf
89651dabde
Description didn't match the function here
2002-08-28 22:14:42 +00:00
Wez Furlong
ddddf398af
WS
2002-08-25 19:44:25 +00:00
Derick Rethans
728f2de442
Unify error messages
2002-07-08 12:52:22 +00:00
Rasmus Lerdorf
ca9c4270f8
Make sure len is defined here
2002-06-03 18:26:27 +00:00
Wez Furlong
a03d09e2d9
Add support for remaining entities in HTML 4 for the UTF-8 encoding in
...
htmlentities/htmlspecial chars.
This is a fix for for #17008 .
# I would *really* appreciate it if someone with a good eye could verify
# that all the entities are there and are correctly numbered; I've checked
# it three times, but it's best to be sure.
2002-05-05 23:06:39 +00:00
Stefan Esser
e926db7bfa
fixed possible bufferoverflow in get_next_char
...
malformed input to htmlentities/htmlspecialchars
with utf-8 encoding crashed the server
ex: htmlentities("\xfd...(30times)", ENT_NOQUOTES, "utf-8");
2002-03-16 09:44:30 +00:00
Wez Furlong
52982c422e
This should help with some build problems/warnings under win32.
...
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
2002-03-16 02:33:00 +00:00
Wez Furlong
a184f5d1d3
* formatting, plus remove some old fopen wrappers
2002-03-16 01:34:52 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +00:00
Dan Kalowsky
86ca867930
quelling a warning, and ensuring now undefined behavior
2002-03-06 16:15:28 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Andrei Zmievski
5da651fcd2
Convert to use new parameter parsing API.
2001-10-26 21:07:59 +00:00
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
2001-09-25 21:58:48 +00:00
Rui Hirokawa
9c5580c7d4
Added support for japanese encoding to htmlentites() and htmlspecialchars(). @ Added support for japanese encoding to htmlentites() and htmlspecialchars(). (Rui)
2001-09-15 04:48:48 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
Wez Furlong
9e7da02d3b
Fix htmlspecialchars problem.
2001-08-24 08:58:10 +00:00
Wez Furlong
f20e9fa298
- Add support for chinese encodings to htmlentities/htmlspecialchars
...
(patch from Alan Knowles <alan_k@hklc.com>)
2001-08-23 10:43:15 +00:00
Zeev Suraski
c0404f4631
Whitespace
2001-08-11 17:03:37 +00:00
Wez Furlong
b00809a322
Fix probs on OpenBSD-current and RedHat 6.1
2001-08-08 20:00:09 +00:00
Wez Furlong
f1364ebf3e
(PHP nl_langinfo) Added function when provided by OS
...
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset
@- Added nl_langinfo() (when OS provides it) that returns locale
information. (Wez Furlong)
# There are a lot of constants used by nl_langinfo; should we do something
# along the lines of what we do for syslog?
2001-07-04 10:10:30 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
Wez Furlong
8b5edf1a9e
Fix compile warning
2001-05-29 10:14:46 +00:00
Wez Furlong
d38cba8697
Added charset awareness to htmlentities() and htmlspecialchars(); use an
...
optional third parameter to specify the charset; otherwise tries to determine
it from the LC_CTYPE locale setting.
2001-05-28 11:00:06 +00:00
Andrei Zmievski
07a5e3fb9c
* Made ENT_* defines availabe to other functions.
...
* The key/variable names in WDDX are now html escaped to not break XML.
@- Fixed WDDX serialization to HTML-escape key/variable names so as not to
@ break the XML packet. (Andrei)
2001-04-25 20:14:29 +00:00
foobar
d3ce7f294c
ws fix
2001-03-02 00:15:49 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
Andre Langhorst
96b95bd286
fixed bug 7961
2000-11-24 16:17:58 +00:00
Rasmus Lerdorf
75d73aaffb
# missed proto comments
2000-09-12 17:24:46 +00:00
Rasmus Lerdorf
d23ad61dc3
Clean up htmlspecialchars/htmlentities inconsistencies.
...
@Clean up htmlspecialchars/htmlentities inconsistencies. (Rasmus)
2000-09-12 17:22:37 +00:00
Colin Viebrock
461f50d50d
Remove single quote from HTMLSpecialChars() ... use addslashes(),
...
htmlentities(), strtr() instead.
2000-08-30 15:27:23 +00:00
Hartmut Holzgraefe
772c4026bb
htmlspecialchars and htmlentities will now
...
encode single quotes to '
(due to feature request in BUG ID#5254)
2000-07-25 10:18:06 +00:00
David Croft
83513d9580
Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.
...
Added a few RCS $Id$ tags.
# Note: I have avoided changing any .h files if the corresponding .c file
# had not already been changed as I am not sure if there are any legal
# issues here. So some extensions still have PHP 3 headers.
2000-07-24 01:40:02 +00:00
Andi Gutmans
3701bc4207
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
2000-06-05 19:47:54 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Andrei Zmievski
4c7af667a7
Made php_escape_html_entities() as a separate function for export.
2000-02-29 04:38:14 +00:00
Zeev Suraski
86fa2aade2
the pipe is breaking all the time
2000-02-19 23:41:32 +00:00
Zeev Suraski
3a816341f9
Cleanup patches
2000-02-05 15:16:12 +00:00
Sascha Schumann
43ae2bffbb
Happy Y2K patch! Happy new year (or the new millennium, depending on whether
...
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Zeev Suraski
a1ad2872ee
- The tree compiles again
1999-12-18 22:40:35 +00:00
Zeev Suraski
3ee4e65c95
More php3_ annihilation
1999-12-18 04:01:20 +00:00
Egon Schmid
0929985414
Maybe later on today. Must buy some beer first.
1999-11-21 14:06:30 +00:00
Thies C. Arntzen
f24db304ee
@- Implemented get_html_translation_table() function. (Thies)
...
(PHP get_html_translation_table) new function.
1999-11-21 13:25:04 +00:00
Thies C. Arntzen
f5fa29184c
(PHP: htmlspecialchars, htmlentities): new zend-api for html-function (not worth mentioning in NEWS)
1999-10-13 19:51:11 +00:00
Zeev Suraski
c5724cbd14
License update
1999-07-16 13:13:16 +00:00
Sascha Schumann
39691bed9e
conv_proto *.[ch]
1999-05-16 11:19:26 +00:00
Zeev Suraski
0818d96c97
A lot of cleanups... Removed old thread-safe code and other redundant code and files
1999-04-24 00:12:00 +00:00
Zeev Suraski
6f7c0edee3
Remove tls.[ch]
1999-04-23 20:06:01 +00:00
Stig Bakken
257de2bade
First commit of re-structuring phase one. We have started using automake in
...
sub-directories and started to move extension code into ext/<name>. For now,
I have moved the "standard" extension (which is quite a mix of everything
right now) and the GD extension into their own subdirs in ext/.
The configure script now also runs configure in the libzend directory
automatically and makes sure php4 and libzend use the same config.cache file.
To avoid running configure in libzend, use the --no-recursion option.
"make" in php4 also builds libzend now.
The Apache module doesn't compile right now, but a fix for that is
coming up.
1999-04-17 00:37:12 +00:00