r61705 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61704‎ | r61705 | r61706 >
Date:02:38, 30 January 2010
Author:bawolff
Status:ok
Tags:
Comment:
Change encoding on svg's generated by easyTimeline from iso-8859-1 to UTF-8
Modified paths:
  • /trunk/extensions/timeline/EasyTimeline.pl (modified) (history)

Diff [purge]

Index: trunk/extensions/timeline/EasyTimeline.pl
@@ -65,8 +65,11 @@
6666 # 1.12 June 2009
6767 # - Don't send -mapfile to ploticus without also sending -csmap, this creates an XSS
6868 # vulnerability
 69+#
 70+# 1.13 Jan 2009
 71+# -change svg encoding from iso-8859-1 -> UTF-8
6972
70 - $version = "1.12" ;
 73+ $version = "1.13" ;
7174
7275 use Time::Local ;
7376 use Getopt::Std ;
@@ -3359,7 +3362,7 @@
33603363 # my $cmd = "$pl $map -" . "svg" . " -o $file_vector $file_script -tightcrop -font \"Times\"" ;
33613364 # my $cmd = "$pl $map -" . "svg" . " -o $file_vector $file_script -tightcrop" ;
33623365 my $cmd = EscapeShellArg($pl) . " $map -" . "svg" . " -o " .
3363 - EscapeShellArg($file_vector) . " " . EscapeShellArg($file_script) . " -tightcrop" ;
 3366+ EscapeShellArg($file_vector) . " " . EscapeShellArg($file_script) . " -tightcrop -xml_encoding UTF-8" ;
33643367 print "$cmd\n";
33653368 system ($cmd) ;
33663369

Follow-up revisions

RevisionCommit summaryAuthorDate
r61714Follow-up r61705: 2009->2010siebrand12:55, 30 January 2010

Status & tagging log