~ubuntu-branches/ubuntu/lucid/mahara/lucid-security

« back to all changes in this revision

Viewing changes to htdocs/lib/htmlpurifier/HTMLPurifier/Strategy/Composite.php

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2009-10-30 13:46:40 UTC
  • mfrom: (6.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091030134640-13srv45w4660pmic
Tags: 1.1.7-1
* New upstream release
  - Privilege escalation fix (CVE-2009-3298)
  - XSS fix (CVE-2009-3299)

* Bump Standards-Version up to 3.8.3
* Switch packaging license to refer to GPL-3
* debian/mahara.config: Move -e to a separate line to silence lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 */
6
6
abstract class HTMLPurifier_Strategy_Composite extends HTMLPurifier_Strategy
7
7
{
8
 
    
 
8
 
9
9
    /**
10
10
     * List of strategies to run tokens through.
11
11
     */
12
12
    protected $strategies = array();
13
 
    
 
13
 
14
14
    abstract public function __construct();
15
 
    
 
15
 
16
16
    public function execute($tokens, $config, $context) {
17
17
        foreach ($this->strategies as $strategy) {
18
18
            $tokens = $strategy->execute($tokens, $config, $context);
19
19
        }
20
20
        return $tokens;
21
21
    }
22
 
    
 
22
 
23
23
}
24
24
 
 
25
// vim: et sw=4 sts=4