Commit the whole fix, not just the documentation from previous commit.
authorAndrew Garrett <werdna@users.mediawiki.org>
Tue, 22 Apr 2008 13:03:11 +0000 (13:03 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Tue, 22 Apr 2008 13:03:11 +0000 (13:03 +0000)
includes/Sanitizer.php

index 4f1e9e1..b7578ff 100644 (file)
@@ -716,6 +716,10 @@ class Sanitizer {
 
                        $attribs[] = "$encAttribute=\"$encValue\"";
                }
+               
+       if ( !wfRunHooks( 'SanitizerAfterFixTagAttributes', array( $text, $element, &$attribs ) ) ) {
+               return ''; # They want to abort this.
+       }
                return count( $attribs ) ? ' ' . implode( ' ', $attribs ) : '';
        }