X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FSanitizer.php;h=fb386102e6fa4a570db2e807e790f457886064f8;hb=42e8b0a8e7b1288b232ea6d212b5e4da803847b0;hp=13ba8c1a079d365c4c98df5dd78a87075f45b18a;hpb=9ceb44a598751550a0e14349562aa931b24b58c6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 13ba8c1a07..fb386102e6 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -457,10 +457,14 @@ class Sanitizer { # and see if we find a match below them $optstack = array(); array_push( $optstack, $ot ); - $ot = @array_pop( $tagstack ); + wfSuppressWarnings(); + $ot = array_pop( $tagstack ); + wfRestoreWarnings(); while ( $ot != $t && isset( $htmlsingleallowed[$ot] ) ) { array_push( $optstack, $ot ); - $ot = @array_pop( $tagstack ); + wfSuppressWarnings(); + $ot = array_pop( $tagstack ); + wfRestoreWarnings(); } if ( $t != $ot ) { # No match. Push the optional elements back again @@ -468,7 +472,7 @@ class Sanitizer { wfSuppressWarnings(); $ot = array_pop( $optstack ); wfRestoreWarnings(); - while ( $ot ) { + while ( $ot ) { array_push( $tagstack, $ot ); wfSuppressWarnings(); $ot = array_pop( $optstack );