Index: trunk/phase3/includes/Exif.php |
— | — | @@ -1043,6 +1043,14 @@ |
1044 | 1044 | $this->formatNum( $val ) ); |
1045 | 1045 | break; |
1046 | 1046 | |
| 1047 | + // Do not transform fields with pure text. |
| 1048 | + // For some languages the formatNum() conversion results to wrong output like |
| 1049 | + // foo,bar@example,com or foo٫bar@example٫com |
| 1050 | + case 'ImageDescription': |
| 1051 | + case 'Artist': |
| 1052 | + case 'Copyright': |
| 1053 | + $tags[$tag] = htmlspecialchars( $val ); |
| 1054 | + break; |
1047 | 1055 | default: |
1048 | 1056 | $tags[$tag] = $this->formatNum( $val ); |
1049 | 1057 | break; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -402,6 +402,8 @@ |
403 | 403 | * (bug 19289) importDump.php can now handle bzip2 and 7zip |
404 | 404 | * (bug 20131) Fixed a PHP notice for users having the "rollback" right on |
405 | 405 | Special:RecentChangesLinked |
| 406 | +* Do not transform EXIF fields with pure text to avoid results like |
| 407 | + foo,bar@example,com |
406 | 408 | |
407 | 409 | == API changes in 1.16 == |
408 | 410 | |