From: River Tarnell Date: Wed, 8 Dec 2004 11:02:08 +0000 (+0000) Subject: htmlspecialchars [MF REL1_4] X-Git-Tag: 1.5.0alpha1~1125 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=07b376f29a8a3985a4ab384c9de8e02cb48df09b;p=lhc%2Fweb%2Fwiklou.git htmlspecialchars [MF REL1_4] --- diff --git a/includes/ImageGallery.php b/includes/ImageGallery.php index 6c778af0b1..33be587aa9 100644 --- a/includes/ImageGallery.php +++ b/includes/ImageGallery.php @@ -93,7 +93,7 @@ class ImageGallery // Not an image. Just print the name and skip. if ( $nt->getNamespace() != NS_IMAGE ) { $s .= '' . - $nt->getText() . '' . (($i%4==3) ? "\n" : ''); + htmlspecialchars( $nt->getText() ) . '' . (($i%4==3) ? "\n" : ''); $i++; continue;