Page MenuHomePhabricator

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

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

Details

Reference
bz28954

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:30 PM
bzimport set Reference to bz28954.
bzimport added a subscriber: Unknown Object (MLST).

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.)

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