-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump ezyang/htmlpurifier from 4.17.0 to 4.18.0 #91
- Loading branch information
1 parent
9893018
commit 5a3421d
Showing
21 changed files
with
151 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.17.0 | ||
4.18.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Ratio.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
/** | ||
* Validates a ratio as defined by the CSS spec. | ||
*/ | ||
class HTMLPurifier_AttrDef_CSS_Ratio extends HTMLPurifier_AttrDef | ||
{ | ||
/** | ||
* @param string $ratio Ratio to validate | ||
* @param HTMLPurifier_Config $config Configuration options | ||
* @param HTMLPurifier_Context $context Context | ||
* | ||
* @return string|boolean | ||
* | ||
* @warning Some contexts do not pass $config, $context. These | ||
* variables should not be used without checking HTMLPurifier_Length | ||
*/ | ||
public function validate($ratio, $config, $context) | ||
{ | ||
$ratio = $this->parseCDATA($ratio); | ||
|
||
$parts = explode('/', $ratio, 2); | ||
$length = count($parts); | ||
|
||
if ($length < 1 || $length > 2) { | ||
return false; | ||
} | ||
|
||
$num = new \HTMLPurifier_AttrDef_CSS_Number(); | ||
|
||
if ($length === 1) { | ||
return $num->validate($parts[0], $config, $context); | ||
} | ||
|
||
$num1 = $num->validate($parts[0], $config, $context); | ||
$num2 = $num->validate($parts[1], $config, $context); | ||
|
||
if ($num1 === false || $num2 === false) { | ||
return false; | ||
} | ||
|
||
return $num1 . '/' . $num2; | ||
} | ||
} | ||
|
||
// vim: et sw=4 sts=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema.ser
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
vendor/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.RemoveBlanks.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Core.RemoveBlanks | ||
TYPE: bool | ||
DEFAULT: false | ||
VERSION: 4.18 | ||
--DESCRIPTION-- | ||
<p> | ||
If set to true, blank nodes will be removed. This can be useful for maintaining | ||
backwards compatibility when upgrading from previous versions of PHP. | ||
</p> | ||
--# vim: et sw=4 sts=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.