repo.or.cz
/
htmlpurifier.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix problem where stacked AttrTransforms clobber each other.
[htmlpurifier.git]
/
library
/
HTMLPurifier
/
URIFilter
/
DisableResources.php
blob
67538c7bb2e7f6aa710094327d858b2a8a0609ee
1
<
?php
2
3
class
HTMLPurifier_URIFilter_DisableResources
extends
HTMLPurifier_URIFilter
4
{
5
public
$name
=
'DisableResources'
;
6
public function
filter
(&
$uri
,
$config
,
$context
) {
7
return
!
$context
->
get
(
'EmbeddedURI'
,
true
);
8
}
9
}
10
11
// vim: et sw=4 sts=4