1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

- Enable blank params to mean true for booleans again

- Make reporter send val=1 anyway
- Add htmlpurifier.org remote test

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1557 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-02-17 01:07:17 +00:00
parent 212958a9c7
commit 51da183f80
3 changed files with 4 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ function htmlpurifier_args(&$AC, $aliases, $o, $v) {
if (isset($aliases[$o])) $o = $aliases[$o];
if (!isset($AC[$o])) return;
if (is_string($AC[$o])) $AC[$o] = $v;
if (is_bool($AC[$o])) $AC[$o] = (bool) $v;
if (is_bool($AC[$o])) $AC[$o] = ($v === '') ? true :(bool) $v;
if (is_int($AC[$o])) $AC[$o] = (int) $v;
}