* (bug 11065) Fix regression in handling of wiki-formatted EXIF metadata
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 25 Aug 2007 22:25:17 +0000 (22:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 25 Aug 2007 22:25:17 +0000 (22:25 +0000)
Removed a wfEscapeWikiText() in the metadata formatting code... that whole mess needs some major cleanup, though. :)
Probably escaping should happen on the _input_ somewhere in the boxels of EXIF stuff.

RELEASE-NOTES
includes/media/Generic.php

index f3c9ad6..2b24739 100644 (file)
@@ -411,6 +411,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   available databases in installer
 * Resizing transparent GIF images with GD now retains transparency by skipping
   resampling
+* (bug 11065) Fix regression in handling of wiki-formatted EXIF metadata
 
 
 == API changes since 1.10 ==
index 1c463da..12c3051 100644 (file)
@@ -195,11 +195,19 @@ abstract class MediaHandler {
                return false;
        }
 
+       /**
+        * @fixme document this!
+        * 'value' thingy goes into a wikitext table; it used to be escaped but
+        * that was incompatible with previous practice of customized display
+        * with wikitext formatting via messages such as 'exif-model-value'.
+        * So the escaping is taken back out, but generally this seems a confusing
+        * interface.
+        */
        protected static function addMeta( &$array, $visibility, $type, $id, $value, $param = false ) {
                $array[$visibility][] = array(
                        'id' => "$type-$id",
                        'name' => wfMsg( "$type-$id", $param ),
-                       'value' => wfEscapeWikiText( $value )
+                       'value' => $value
                );
        }