From: Andrew Garrett Date: Tue, 22 Apr 2008 13:03:11 +0000 (+0000) Subject: Commit the whole fix, not just the documentation from previous commit. X-Git-Tag: 1.31.0-rc.0~48134 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=ea8b7bf1842105f7cca85f4350009c677777bc80;p=lhc%2Fweb%2Fwiklou.git Commit the whole fix, not just the documentation from previous commit. --- 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 ) : ''; }