/home/techb158/immovalet.com/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS
NameSizeModeActions
AlphaValue.php7930644editdlrm
Background.php32080644editdlrm
BackgroundPosition.php41660644editdlrm
Border.php15910644editdlrm
Color.php46800644editdlrm
Composite.php13320644editdlrm
DenyElementDecorator.php10750644editdlrm
Filter.php23260644editdlrm
Font.php66090644editdlrm
FontFamily.php94090644editdlrm
Ident.php7240644editdlrm
ImportantDecorator.php15970644editdlrm
Length.php18970644editdlrm
ListStyle.php29110644editdlrm
Multiple.php20920644editdlrm
Number.php22870644editdlrm
Percentage.php12790644editdlrm
TextDecoration.php11560644editdlrm
URI.php25680644editdlrm
Edit: /home/techb158/immovalet.com/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Length.php (1897B)
min = $min !== null ? HTMLPurifier_Length::make($min) : null; $this->max = $max !== null ? HTMLPurifier_Length::make($max) : null; } /** * @param string $string * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return bool|string */ public function validate($string, $config, $context) { $string = $this->parseCDATA($string); // Optimizations if ($string === '') { return false; } if ($string === '0') { return '0'; } if (strlen($string) === 1) { return false; } $length = HTMLPurifier_Length::make($string); if (!$length->isValid()) { return false; } if ($this->min) { $c = $length->compareTo($this->min); if ($c === false) { return false; } if ($c < 0) { return false; } } if ($this->max) { $c = $length->compareTo($this->max); if ($c === false) { return false; } if ($c > 0) { return false; } } return $length->toString(); } } // vim: et sw=4 sts=4