[Fusionforge-commits] r8524 - trunk/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Fri Dec 11 16:39:50 CET 2009


Author: lolando
Date: 2009-12-11 16:39:50 +0100 (Fri, 11 Dec 2009)
New Revision: 8524

Modified:
   trunk/gforge/common/include/TextSanitizer.class.php
Log:
Disable HTMLPurifier's cache so make check works without a 777 directory

Modified: trunk/gforge/common/include/TextSanitizer.class.php
===================================================================
--- trunk/gforge/common/include/TextSanitizer.class.php	2009-12-11 15:22:23 UTC (rev 8523)
+++ trunk/gforge/common/include/TextSanitizer.class.php	2009-12-11 15:39:50 UTC (rev 8524)
@@ -216,6 +216,7 @@
 	function stripTags ($text, $allowed='br,p,li,ul') {
 		$config = HTMLPurifier_Config::createDefault();
 		$config->set('HTML', 'Allowed', $allowed);
+		$config->set('Cache.DefinitionImpl', NULL);
 		$purifier = new HTMLPurifier($config);
 		$text = $purifier->purify($text);
 
@@ -225,6 +226,7 @@
 	function purify ($text) {
 		$config = HTMLPurifier_Config::createDefault();
 		//$config->set('HTML','Allowed','a[href|title],strike,sub,span,font,hr,br,tbody,tr,td,table,div,u,p,ul,li,ol,blockquote,em,strong,sup,input,img,textarea,h1,h2,h3,h4,h5,h6,pre,address');
+		$config->set('Cache.DefinitionImpl', NULL);
 		$purifier = new HTMLPurifier($config);
 		return $purifier->purify($text);
 	}




More information about the Fusionforge-commits mailing list