Cripple the wiki text stuff for now. It doesn't SEEM dangerous but I haven't tested...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 24 Jun 2006 00:27:16 +0000 (00:27 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 24 Jun 2006 00:27:16 +0000 (00:27 +0000)
includes/ImageGallery.php
includes/Parser.php

index 86927c5..ccf2c14 100644 (file)
@@ -43,7 +43,6 @@ class ImageGallery
        
        /**
         * Set the caption
-        * What's passed is used as HTML so don't do anything stupid
         *
         * @param $caption Caption
         */
@@ -140,7 +139,7 @@ class ImageGallery
 
                $s = '<table class="gallery" cellspacing="0" cellpadding="0">';
                if( $this->mCaption )
-                       $s .= '<td class="galleryheader" colspan="4"><big>' . $this->mCaption . '</big></td>';
+                       $s .= '<td class="galleryheader" colspan="4"><big>' . htmlspecialchars( $this->mCaption ) . '</big></td>';
                
                $i = 0;
                foreach ( $this->mImages as $pair ) {
index 8baaf97..e6ebb46 100644 (file)
@@ -4125,7 +4125,7 @@ class Parser
                $ig->useSkin( $this->mOptions->getSkin() );
 
                if( isset( $params['caption'] ) )
-                       $ig->setCaption( $this->replaceInternalLinks( $params['caption'] ) );
+                       $ig->setCaption( $params['caption'] );
                
                $lines = explode( "\n", $text );
                foreach ( $lines as $line ) {