includes/wikiengine/Tables.php
changeset 163 ad00dc1f8706
parent 142 ca9118d9c0f2
child 166 d53cc29308f4
--- a/includes/wikiengine/Tables.php	Fri Oct 05 01:57:00 2007 -0400
+++ b/includes/wikiengine/Tables.php	Sat Oct 06 13:01:46 2007 -0400
@@ -422,6 +422,7 @@
 	 * @return array
 	 */
 	function setupAttributeWhitelist() {
+    global $db, $session, $paths, $template, $plugins;
 		$common = array( 'id', 'class', 'lang', 'dir', 'title', 'style' );
 		$block = array_merge( $common, array( 'align' ) );
 		$tablealign = array( 'align', 'char', 'charoff', 'valign' );
@@ -570,6 +571,14 @@
       # XHTML stuff
       'acronym'    => $common
 			);
+    
+    // custom tags can be added by plugins
+    $code = $plugins->setHook('html_attribute_whitelist');
+    foreach ( $code as $cmd )
+    {
+      eval($cmd);
+    }
+    
 		return $whitelist;
 	}