forked from extern/egroupware
adapt html purifiers URIScheme cid to new purifiers class requirements; adapt URIScheme data to accept allowed types in whatever (upper/lower/mixed) case
This commit is contained in:
parent
d972804aff
commit
b0f211f40b
@ -8,8 +8,11 @@
|
|||||||
class HTMLPurifier_URIScheme_cid extends HTMLPurifier_URIScheme {
|
class HTMLPurifier_URIScheme_cid extends HTMLPurifier_URIScheme {
|
||||||
|
|
||||||
public $browsable = true;
|
public $browsable = true;
|
||||||
|
// this is actually irrelevant since we only write out the path
|
||||||
|
// component
|
||||||
|
public $may_omit_host = true;
|
||||||
|
|
||||||
public function validate(&$uri, $config, $context) {
|
public function doValidate(&$uri, $config, $context) {
|
||||||
//error_log(__METHOD__." calledi with:".print_r($uri,true));
|
//error_log(__METHOD__." calledi with:".print_r($uri,true));
|
||||||
//parent::validate($uri, $config, $context);
|
//parent::validate($uri, $config, $context);
|
||||||
$uri->userinfo = null;
|
$uri->userinfo = null;
|
||||||
|
@ -45,7 +45,7 @@ class HTMLPurifier_URIScheme_data extends HTMLPurifier_URIScheme {
|
|||||||
} else {
|
} else {
|
||||||
$data = $result[0];
|
$data = $result[0];
|
||||||
}
|
}
|
||||||
if ($content_type !== null && empty($this->allowed_types[$content_type])) {
|
if ($content_type !== null && empty($this->allowed_types[strtolower($content_type)])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($charset !== null) {
|
if ($charset !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user