mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-04 21:28:06 +02:00
Remove trailing whitespace.
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
*/
|
||||
class HTMLPurifier_PropertyListIterator extends FilterIterator
|
||||
{
|
||||
|
||||
|
||||
protected $l;
|
||||
protected $filter;
|
||||
|
||||
|
||||
/**
|
||||
* @param $data Array of data to iterate over
|
||||
* @param $filter Optional prefix to only allow values of
|
||||
@@ -18,13 +18,13 @@ class HTMLPurifier_PropertyListIterator extends FilterIterator
|
||||
$this->l = strlen($filter);
|
||||
$this->filter = $filter;
|
||||
}
|
||||
|
||||
|
||||
public function accept() {
|
||||
$key = $this->getInnerIterator()->key();
|
||||
if( strncmp($key, $this->filter, $this->l) !== 0 ) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user