From: Ævar Arnfjörð Bjarmason Date: Sat, 18 Jun 2005 01:07:42 +0000 (+0000) Subject: * (bug 2374) Allow extension tags to be terminated empty elements X-Git-Tag: 1.5.0beta1~174 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=798df26f95341980b8e19373193bf23b00797973;p=lhc%2Fweb%2Fwiklou.git * (bug 2374) Allow extension tags to be terminated empty elements i.e. instead of , works for too --- diff --git a/includes/Parser.php b/includes/Parser.php index 11677117f0..a910afe259 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -272,6 +272,9 @@ class Parser $params = array( ); } + // Hack to support short XML style tags + $text = preg_replace( "/<$tag(\\s+[^>]*|\\s*)\\/>/i", "<$tag\\1>", $text ); + if( $tag == STRIP_COMMENTS ) { $start = '//';