0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-19 10:45:18 +00:00
htmlpurifier/tests
Edward Z. Yang e76f4b45d0 Dramatically rewrite null host URI handling.
Basically, browsers don't parse what should be valid URIs correctly, so
we have to go through some backbends to accomodate them.  Specifically,
for browseable URIs, the following URIs have unintended behavior:

    - ///example.com
    - http:/example.com
    - http:///example.com

Furthermore, if the path begins with //, modifying these URLs must
be done with care, as if you remove the host-name component, the
parse tree changes.

I've modified the engine to follow correct URI semantics as much
as possible while outputting browser compatible code, and invalidate
the URI in cases where we can't deal.  There has been a refactoring
of URIScheme so that this important check is always performed,
introducing a new member variable allow_empty_host which is true
on data, file, mailto and news schemes.

This also fixes bypass bugs on URI.Munge.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-01-25 18:56:46 +00:00
..
FSTools Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
HTMLPurifier Dramatically rewrite null host URI handling. 2011-01-25 18:56:46 +00:00
PHPT Add sanity check against ze1_compatibility_mode. 2010-11-12 16:15:03 +00:00
tmp Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
CliTestCase.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
common.php Check that argv is set before operating on it. 2011-01-13 22:42:47 +00:00
Debugger.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
generate_mock_once.func.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
HTMLPurifierTest.php Convert all to new configuration get/set format. 2009-02-21 03:00:34 -05:00
index.php Make test script less chatty when log_errors is on. 2010-05-20 21:50:44 -04:00
multitest.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
path2class.func.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
test_files.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00