mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-01 11:50:28 +02:00
Remove legacy required code from AttrDef_URI, also explicitly disallow < and > in URIs.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@253 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -153,6 +153,10 @@ class HTMLPurifier_AttrDef_URITest extends HTMLPurifier_AttrDefHarness
|
||||
$uri[18] = '/a/b';
|
||||
$components[18] = array(null, null, null, '/a/b', null);
|
||||
|
||||
// it's not allowed, so generic URI should get it
|
||||
$uri[19] = '<';
|
||||
$expect_uri[19] = false;
|
||||
|
||||
foreach ($uri as $i => $value) {
|
||||
|
||||
// setUpAssertDef
|
||||
|
Reference in New Issue
Block a user