0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 08:21:52 +00:00
htmlpurifier/library/HTMLPurifier
Jasper Zonneveld 2512f595e0
Check PHP version before checking magic quotes (#273)
This function has been DEPRECATED as of PHP 7.4.0. Relying on this function is highly discouraged. It is basically useless as of PHP 5.4 because it will always return false, so for modern applications it can be safely removed. But as this library still supports PHP 5.2 — according to the constraints in composer.json — I added a version check to prevent this method from being called (and trigger a notice) on PHP >=7.4.

See: https://www.php.net/manual/en/function.get-magic-quotes-gpc.php
2020-09-30 20:19:10 -04:00
..
AttrDef Issue 238 remove leading zeroes except if there is only zero (#239) 2019-11-21 10:05:07 -05:00
AttrTransform Refactor HTML.Noopener to HTML.TargetNoopener so that it behaves like HTML.TargetNoreferrer and is active by default if a target is set 2017-02-03 16:54:51 -08:00
ChildDef Replace curly braces with square brackets in string offsets (#224) 2019-07-30 22:50:43 -04:00
ConfigSchema Add %HTML.Forms config directive (#260) 2020-06-28 20:26:33 -04:00
DefinitionCache Fix E_WARNING when cache directory exists 2017-06-20 09:53:14 +02:00
EntityLookup Fix missing numeric entities (shows up when DirectLexing). 2011-02-27 11:58:37 +00:00
Filter Comment on why it's a non-greedy match. 2017-03-06 23:27:30 -08:00
HTMLModule Add %HTML.Forms config directive (#260) 2020-06-28 20:26:33 -04:00
Injector Hack to fix #85 2016-07-01 15:52:09 -04:00
Language/messages Delete language tests that are interfering with PSR-0 compatibility 2020-06-28 20:38:16 -04:00
Lexer Fix DOM Lexer for PHP versions older than 5.4 (#225) 2019-08-09 17:01:13 -04:00
Node Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
Printer Correct implode() params for php74 compliance (#243) 2020-01-21 11:17:18 -05:00
Strategy Document skips in more detail, #116. 2017-03-06 20:31:28 -08:00
TagTransform Replace curly braces with square brackets in string offsets (#224) 2019-07-30 22:50:43 -04:00
Token Add conversion functions for our own tree format. 2013-10-20 15:05:11 -07:00
URIFilter Conditionalize hash_hmac tests for 5.0 2013-11-29 22:27:01 -08:00
URIScheme avoid exif_imagetype exception with small files/corrupt data URI 2016-07-16 05:23:17 -07:00
VarParser Fixed reserved words in constants for PHP 7 as per https://www.php.net/manual/en/reserved.other-reserved-words.php (#222) 2019-07-10 22:24:27 -04:00
Arborize.php Delete asserts, fixes #97. 2016-10-02 00:14:41 -07:00
AttrCollections.php Update to work with Git version of SimpleTest. 2016-03-24 00:08:03 -07:00
AttrDef.php Better regex for mungeRgb 2017-02-10 00:40:56 +01:00
AttrTransform.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
AttrTypes.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
AttrValidator.php Remove some unnecessary pass-by-reference. 2013-10-16 18:55:23 -07:00
Bootstrap.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ChildDef.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
Config.php Check PHP version before checking magic quotes (#273) 2020-09-30 20:19:10 -04:00
ConfigSchema.php Update reference to the valid types to refer to HTMLPurifier_VarParser::types (#189) 2018-11-11 16:23:01 -05:00
ContentSets.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Context.php Properly handle context variables that are NULL. 2013-10-13 13:21:02 -07:00
CSSDefinition.php CSS: added "initial" and "inherit" to width + height (#144) 2019-07-14 13:20:58 -04:00
Definition.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
DefinitionCache.php Fix #49; prevent readdir infinite loop when cache directory not listable. 2016-03-27 14:53:31 -07:00
DefinitionCacheFactory.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Doctype.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
DoctypeRegistry.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ElementDef.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Encoder.php Replace curly braces with square brackets in string offsets (#224) 2019-07-30 22:50:43 -04:00
EntityLookup.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
EntityParser.php Don't use @ warning suppression. 2018-11-11 18:20:33 -05:00
ErrorCollector.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
ErrorStruct.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Exception.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
Filter.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Generator.php Mod: using stdClass instead of stdclass 2017-06-02 09:55:46 +08:00
HTMLDefinition.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLModule.php issue-256: Fix PHP 7.3 compatibility issues (#266) 2020-09-15 12:38:39 -04:00
HTMLModuleManager.php Refactor HTML.Noopener to HTML.TargetNoopener so that it behaves like HTML.TargetNoreferrer and is active by default if a target is set 2017-02-03 16:54:51 -08:00
IDAccumulator.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Injector.php Skip counting currentNesting if null 2017-12-30 00:23:44 -05:00
Language.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
LanguageFactory.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Length.php Add relative length units from CSS 3 2017-12-22 21:59:47 -05:00
Lexer.php Autoloading must be skipped while checking for php builtin class. 2017-03-20 10:42:28 +04:00
Node.php Rewrite FixNesting implementation to be tree-based. 2013-10-20 22:37:01 -07:00
PercentEncoder.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Printer.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
PropertyList.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
PropertyListIterator.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Queue.php Fix quadratic behavior in DOMLex due to array_shift. 2013-09-17 00:48:42 -07:00
Strategy.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
StringHash.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
StringHashParser.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
TagTransform.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
Token.php Document skips in more detail, #116. 2017-03-06 20:31:28 -08:00
TokenFactory.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
UnitConverter.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URI.php Allow %URI.DefaultScheme to be null. 2016-10-27 17:30:44 -07:00
URIDefinition.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URIFilter.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URIParser.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URIScheme.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
URISchemeRegistry.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
VarParser.php Fixed reserved words in constants for PHP 7 as per https://www.php.net/manual/en/reserved.other-reserved-words.php (#222) 2019-07-10 22:24:27 -04:00
VarParserException.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
Zipper.php Use a Zipper to process MakeWellFormed, removing quadratic behavior. 2013-10-13 13:21:02 -07:00