From ea8b7bf1842105f7cca85f4350009c677777bc80 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Tue, 22 Apr 2008 13:03:11 +0000 Subject: [PATCH] Commit the whole fix, not just the documentation from previous commit. --- includes/Sanitizer.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 4f1e9e1f54..b7578ff53a 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -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 ) : ''; } -- 2.20.1