Normalize how EXIF data gets exported into tables (armor against wiki formatting in raw data)
OpenPublic

Description

As noted at https://secure.wikimedia.org/wikipedia/commons/w/index.php?title=Commons:Village_pump&oldid=54313750#Template_in_EXIF

Straight text metadata fields appear to get shipped through to the generated wiki-formatted table as-is, hence expansion of templates etc, either by design (weird!) or accidentally (could break the table).

Should probably armor raw texts against accidental formatting; but make sure that the formatting that is *explicitly* applied to various data fields isn't broken.


Version: unspecified
Severity: normal
URL: https://commons.wikimedia.org/wiki/File:LG_Headshot.jpg

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz28954.
brion created this task.Via LegacyMay 13 2011, 12:20 PM
Bawolff added a comment.Via ConduitMay 14 2011, 3:36 AM

This is trivial to do. The main use case against doing this is we want raw urls to be linked. (Currently we htmlencode only some of the fields [before putting it through the parser], which is really supper weird, since we let the wikitext through, and not all fields are htmlencoded.)

Lupo added a comment.Via ConduitMay 15 2011, 1:54 PM

Then just disable template expansion and tables: htmlencode only "{" and "}". That should not have any effect on links.

Gilles added a project: Multimedia.Via WebNov 24 2014, 3:37 PM

Add Comment