/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/URI.php (2568B)
parseCDATA($uri_string); if (strpos($uri_string, 'url(') !== 0) { return false; } $uri_string = substr($uri_string, 4); if (strlen($uri_string) == 0) { return false; } $new_length = strlen($uri_string) - 1; if ($uri_string[$new_length] != ')') { return false; } $uri = trim(substr($uri_string, 0, $new_length)); if (!empty($uri) && ($uri[0] == "'" || $uri[0] == '"')) { $quote = $uri[0]; $new_length = strlen($uri) - 1; if ($uri[$new_length] !== $quote) { return false; } $uri = substr($uri, 1, $new_length - 1); } $uri = $this->expandCSSEscape($uri); $result = parent::validate($uri, $config, $context); if ($result === false) { return false; } // extra sanity check; should have been done by URI $result = str_replace(array('"', "\\", "\n", "\x0c", "\r"), "", $result); // suspicious characters are ()'; we're going to percent encode // them for safety. $result = str_replace(array('(', ')', "'"), array('%28', '%29', '%27'), $result); // there's an extra bug where ampersands lose their escaping on // an innerHTML cycle, so a very unlucky query parameter could // then change the meaning of the URL. Unfortunately, there's // not much we can do about that... return "url(\"$result\")"; } } // vim: et sw=4 sts=4