[rkward-cvs] SF.net SVN: rkward: [1429] trunk/rkward/rkward/plugins/plots/plot_options. php
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Thu Feb 22 18:35:50 UTC 2007
Revision: 1429
http://svn.sourceforge.net/rkward/?rev=1429&view=rev
Author: tfry
Date: 2007-02-22 10:35:49 -0800 (Thu, 22 Feb 2007)
Log Message:
-----------
Make sure to escape quotes in labels
Modified Paths:
--------------
trunk/rkward/rkward/plugins/plots/plot_options.php
Modified: trunk/rkward/rkward/plugins/plots/plot_options.php
===================================================================
--- trunk/rkward/rkward/plugins/plots/plot_options.php 2007-02-22 18:31:39 UTC (rev 1428)
+++ trunk/rkward/rkward/plugins/plots/plot_options.php 2007-02-22 18:35:49 UTC (rev 1429)
@@ -6,7 +6,7 @@
$label = getRK_val ("default_" . $labelname);
$quoted = true;
}
- if (($label != "") && ($quoted)) $label = "\"" . $label . "\"";
+ if (($label != "") && ($quoted)) $label = "\"" . strtr ($label, array ('"' => '\\"')) . "\"";
if ($label != "") $label = ", " . $labelname . "=" . $label;
return $label;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list