1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 21:57:26 +02:00

css properties: min-width, max-width, min-height, max-height

This commit is contained in:
zema
2016-09-05 10:45:58 +03:00
parent 1ce2fde400
commit 246fc8946a
3 changed files with 11 additions and 0 deletions

View File

@@ -225,6 +225,10 @@ class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition
);
$max = $config->get('CSS.MaxImgLength');
$this->info['min-width'] =
$this->info['max-width'] =
$this->info['min-height'] =
$this->info['max-height'] =
$this->info['width'] =
$this->info['height'] =
$max === null ?