PHPIDS
Current file: /home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/URIFilter/DisableExternalResources.php
Legend: executed not executed dead code

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 1 / 1
0.00 %0.00%
0.00% 0 / 1
100.00 %100.00%
100.00% 1 / 1
 
HTMLPurifier_URIFilter_DisableExternalResources
100.00 %100.00%
100.00% 1 / 1
0.00 %0.00%
0.00% 0 / 1
100.00 %100.00%
100.00% 1 / 1
 public function filter(&$uri, $config, $context)
0.00 %0.00%
0.00% 0 / 1
100.00 %100.00%
100.00% 0 / 0


       1                 : <?php                                                                                               
       2                 :                                                                                                     
       3               1 : class HTMLPurifier_URIFilter_DisableExternalResources extends HTMLPurifier_URIFilter_DisableExternal
       4                 : {                                                                                                   
       5                 :     public $name = 'DisableExternalResources';                                                      
       6                 :     public function filter(&$uri, $config, $context) {                                              
       7                 :         if (!$context->get('EmbeddedURI', true)) return true;                                       
       8                 :         return parent::filter($uri, $config, $context);                                             
       9                 :     }                                                                                               
      10                 : }                                                                                                   
      11                 :                                                                                                     

Generated by PHPUnit 3.2.20 and Xdebug 2.0.3 at Sat Jun 7 16:15:42 CEST 2008.