summaryrefslogtreecommitdiff
path: root/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch')
-rw-r--r--dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch b/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
new file mode 100644
index 000000000000..7d33370584ae
--- /dev/null
+++ b/dev-perl/PDL-Graphics-Gnuplot/files/PDL-Graphics-Gnuplot-2.11.0-outputfile.patch
@@ -0,0 +1,23 @@
+From b12c3f5de6340b997e5a2992710828f3e89308a0 Mon Sep 17 00:00:00 2001
+From: Simon Reinhardt <simon.reinhardt@stud.uni-regensburg.de>
+Date: Mon, 26 Jun 2017 14:57:32 +0200
+Subject: [PATCH] Fix #65: No quoting for output filenames.
+
+Insert missing call to quote_escape (escape backslashes and such for gnuplot
+double-quote strings).
+---
+ lib/PDL/Graphics/Gnuplot.pm | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm
+index 0edf7ef..ff96cc9 100644
+--- a/lib/PDL/Graphics/Gnuplot.pm
++++ b/lib/PDL/Graphics/Gnuplot.pm
+@@ -5188,6 +5188,7 @@ our $pOptionsTable =
+ if($vv ne $v) {
+ carp "INFO: Plotting to '$vv'\n";
+ }
++ $vv = quote_escape($vv);
+ return "set $k \"$vv\"\n";
+ },
+ undef,3,