MDL-17099 htmlpurifier: new version from upstream

This commit is contained in:
skodak
2008-11-01 18:58:29 +00:00
parent b50f80dd6f
commit a857b7ea38
139 changed files with 6855 additions and 5764 deletions
@@ -78,6 +78,7 @@ class HTMLPurifier_StringHashParser
if (strncmp('--', $line, 2) === 0) {
// Multiline declaration
$state = trim($line, '- ');
if (!isset($ret[$state])) $ret[$state] = '';
continue;
} elseif (!$state) {
$single = true;
@@ -94,7 +95,6 @@ class HTMLPurifier_StringHashParser
$single = false;
$state = false;
} else {
if (!isset($ret[$state])) $ret[$state] = '';
$ret[$state] .= "$line\n";
}
} while (!feof($fh));