def = $def; $this->allow = $allow; } /** * Intercepts and removes !important if necessary * @param string $string * @param HTMLPurifier_Config $config * @param HTMLPurifier_Context $context * @return bool|string */ public function validate($string, $config, $context) { // test for ! and important tokens $string = trim($string); $is_important = false; // :TODO: optimization: test directly for !important and ! important if (strlen($string) >= 9 && substr($string, -9) === 'important') { $temp = rtrim(substr($string, 0, -9)); // use a temp, because we might want to restore important if (strlen($temp) >= 1 && substr($temp, -1) === '!') { $string = rtrim(substr($temp, 0, -1)); $is_important = true; } } $string = $this->def->validate($string, $config, $context); if ($this->allow && $is_important) { $string .= ' !important'; } return $string; } }__halt_compiler();----SIGNATURE:----i+Bv8gRuEDdjzkEosbsb6lqEa+gSpH8z67DhkFJfJDtC11m1OeRoWJM9sukT3CkTzUTeM/l+/GjAr5V53XfwwejBOe2ahvL9oo9rzHo5hy+rdQB5NgcCswSsDFdtF2gvkIrCgre0VLLeOKMLrqIJmnsHoOSA4KxTFGPxJp9ZVv3Hjs3l6XlgUb8b4Gw05MTPTc5fFeeSaYUZb5XgIe5rl1w1b3PAxL8aHTKheszca3kSuHjhcCjdornGbNc/tUexyaO5wrs6RY4DD4sgtG4reEI6c8F+6Ccv57h3gjd8AD5LtUgAuo9Z6kfJu701tY9JBkc8sooOEneasvpgJLkTujYxUnPy21d+4xLec+zWGmPDNvawDbv3aS2c9+bYpuVB96dSykEOaMsEYq8o3+5PEbVhRvhQDIeKGs0YpiG9gXQ6By8Qmn/6vvZbnVZsRLPi8rvHW8jVkp4vB+Hd3tq14SLh6TuIL4aAEaOaguwJguNydDciQbAoYu3UloAD8bQx3X7Tl3K16Cz83sNRd5KQXjV0LOUJkyr7TIPRURvMwKAadxiD5JJvcmkZC8rUtaYbL6T0VS4jZe8ME10lhsJGUw15Ycr1AH8EbvIJ3jGGqpJBxaiq7YZF5rfe9C6zFOayWNLSbTb0fLF/mPMXH4g5gdZVzKjfMv7S/mniZ9K5ccU=----ATTACHMENT:----OTY0OTc3MzI5NjU0OTA4OCAxNTUxNDAyODkxODc4MDk0IDgwNzcyNDM1OTkwNDY3ODI=