mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00: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:
parent
212958a9c7
commit
51da183f80
@ -22,7 +22,7 @@ class HTMLPurifier_SimpleTest_Reporter extends HTMLReporter
|
|||||||
?>><?php echo $file ?></option>
|
?>><?php echo $file ?></option>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</select>
|
</select>
|
||||||
<input type="checkbox" name="standalone" title="Standalone version?" <?php if($this->ac['standalone']) {echo 'checked="checked" ';} ?>/>
|
<input type="checkbox" name="standalone" value="1" title="Standalone version?" <?php if($this->ac['standalone']) {echo 'checked="checked" ';} ?>/>
|
||||||
<input type="submit" value="Go">
|
<input type="submit" value="Go">
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
@ -144,7 +144,7 @@ function htmlpurifier_args(&$AC, $aliases, $o, $v) {
|
|||||||
if (isset($aliases[$o])) $o = $aliases[$o];
|
if (isset($aliases[$o])) $o = $aliases[$o];
|
||||||
if (!isset($AC[$o])) return;
|
if (!isset($AC[$o])) return;
|
||||||
if (is_string($AC[$o])) $AC[$o] = $v;
|
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;
|
if (is_int($AC[$o])) $AC[$o] = (int) $v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,8 @@ foreach ($versions_to_test as $version) {
|
|||||||
|
|
||||||
// This is the HTML Purifier website's test XML file. We could
|
// This is the HTML Purifier website's test XML file. We could
|
||||||
// add more websites, i.e. more configurations to test.
|
// add more websites, i.e. more configurations to test.
|
||||||
$test->addTestCase(new RemoteTestCase('http://localhost/htmlpurifier/tests/?xml', 'http://localhost/htmlpurifier/tests/?xml&dry'));
|
$test->addTestCase(new RemoteTestCase('http://localhost/htmlpurifier/tests/?xml=1', 'http://localhost/htmlpurifier/tests/?xml=1&dry=1'));
|
||||||
|
$test->addTestCase(new RemoteTestCase('http://htmlpurifier.org/dev/tests/?xml=1', 'http://htmlpurifier.org/dev/tests/?xml=1&dry=1'));
|
||||||
|
|
||||||
if ($AC['xml']) {
|
if ($AC['xml']) {
|
||||||
$reporter = new XmlReporter();
|
$reporter = new XmlReporter();
|
||||||
|
Loading…
Reference in New Issue
Block a user