summaryrefslogtreecommitdiff
path: root/ext/standard/html.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove year range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* year++Xinchen Hui2018-01-021-1/+1
|
* Avoid string reallocations in html_entity_decode() and htmlspecialchars_decode()Dmitry Stogov2017-06-061-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-3/+3
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | Use better data structures (incomplete)Dmitry Stogov2014-02-131-3/+3
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the numberGustavo André dos Santos Lopes2010-10-271-0/+1
| | | | | | | | of reported malformed sequences). (Gustavo) #Made a public interface for get_next_char/utf-8 in trunk to use in utf8_decode. #In PHP 5.3, trunk's get_next_char was copied to xml.c because 5.3's #get_next_char is different and is not prepared to recover appropriately from #errors.
* - Completed rewrite of html.c. Except for determine_charset, almost nothingGustavo André dos Santos Lopes2010-10-241-12/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remains. - Fixed bug on determine_charset that was preventing correct detection in combination with internal mbstring encoding "none", "pass" or "auto". - Added profiles for entity encode/decode for HTMl 4.01, XHTML 1.0, XML 1.0 and HTML 5. Added the constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5. - htmlentities()/htmlspecialchars(), when told not to double encode, verify the correctness of the existenting entities more thoroughly. It is checked whether the numerical entity represents a valid unicode code point (number is between 0 and 0x10FFFF). If using the flag ENT_DISALLOWED, it is also checked whether that numerical entity is valid in selected document. In HTML 4.01, all the numerical entities that represent a Unicode code point (< U+10FFFFFF) are valid, but that's not the case with other document types. If the entity is not valid, & is encoded to &amp;. For named entities, the check is also more thorough. While before the only check would be to determine if the entity was constituted by alphanumeric characters, now it is checked whether that entity is necessarily defined for the target document type. Otherwise, & is encoded to &amp;. - For html_entity_decode(), only valid numerical and named entities (as defined above for htmlentities()/htmlspecialchars() + !double_encode) are decoded. But there is in this case one additional check. Entities that represent non-SGML or otherwise invalid characters are not decoded. Note that, in HTML5, U+000D is a valid literal character, but the entity &#x0D is not valid and is therefore not decoded. - The hash tables lazily created for decoding in html_entity_decode() that were added recently were substituted by static hash tables. Instead of 1 hash table per encoding, there's only one hash table per document type defined in terms of unicode code points. This means that for charsets other than UTF-8 and ISO-8859-1, a conversion to unicode code points is necessary before decoding. - On the encoding side, the ad hoc ranges of entities of the translation tables, which mapped (in general) non-unicode code points to HTML entities were replaced by three-stage tables for HTML 4 and HTML 5. This mapping tables are defined only in terms of unicode code points, so a conversion is necessary for charsets other than UTF-8 and ISO-8859-1. Even so, the multi-stage table is much faster than the previous method, by a factor of 5; the conversion to unicode is a small penalty because it's just a simple table lookup. XML 1.0/htmlspecialchars() uses a simple table instead of a three-stage table. - Added the flag ENT_SUBSTITUTE, which makes htmlentities()/htmlspecialchars() replace the invalid multibyte sequences with U+FFFD (UTF-8) or &#FFFD; (other encodings). - Added the flag ENT_DISALLOWED. Implements FR #52860. Characters that cannot appear literally are replaced by U+FFFD (UTF-8) or &#FFFD; (otherwise). An alternative implementation would be to encode those characters into numerical entities, but that would only work in HTML 4.01 due to limitations on the values of numerical entities in other document types. See also the effects on htmlentities()/htmlspecialchars() with !double_encode above.
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Added ENT_IGNORE as a compatibility flag for htmlentities() andArnaud Le Blanc2008-11-261-0/+2
| | | | | | | | 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. Fixes #43896
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* [DOC] Added a 4th parameter flag to htmlspecialchars() and htmlentities()Ilia Alshanetsky2007-05-221-0/+1
| | | | | | that makes the function not encode existing html entities. The feature is disabled by default and can be activated by passing FALSE as the 4th param
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* add php_unescape_html_entities() proto to the headerAntony Dovgal2006-11-281-0/+1
| | | | | (fixes #39665)
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* Added htmlspecialchars_decode() function for fast conversion fromIlia Alshanetsky2005-03-071-0/+1
| | | | | htmlspecialchars() generated entities back to characters.
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-2/+2
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Fix ZTS build.Sebastian Bergmann2002-09-261-1/+1
|
* * formatting, plus remove some old fopen wrappersWez Furlong2002-03-161-1/+1
|
* New PHP streams...Wez Furlong2002-03-151-3/+8
|
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Added charset awareness to htmlentities() and htmlspecialchars(); use anWez Furlong2001-05-281-1/+1
| | | | | | optional third parameter to specify the charset; otherwise tries to determine it from the LC_CTYPE locale setting.
* * Made ENT_* defines availabe to other functions.Andrei Zmievski2001-04-251-0/+4
| | | | | | | * 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)
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* Clean up htmlspecialchars/htmlentities inconsistencies.Rasmus Lerdorf2000-09-121-1/+1
| | | | | @Clean up htmlspecialchars/htmlentities inconsistencies. (Rasmus)
* Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.David Croft2000-07-241-21/+10
| | | | | | | | | 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.
* Change header protection macros to conform to standard.Sascha Schumann2000-07-021-3/+3
| | | | | | | | | Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment" All identifiers that begin with an underscore and either an uppercase letter or another underscore are always reserved for any use by the implementation.
* Made php_escape_html_entities() as a separate function for export.Andrei Zmievski2000-02-291-0/+2
|
* @- Implemented get_html_translation_table() function. (Thies)Thies C. Arntzen1999-11-211-0/+3
| | | | | (PHP get_html_translation_table) new function.
* conv_proto *.[ch]Sascha Schumann1999-05-161-2/+2
|
* First commit of re-structuring phase one. We have started using automake inStig Bakken1999-04-171-0/+38
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.