From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 29 Jun 2011 18:34:38 +0000 (+0000)
Subject: Consistently use quote() in execute_dumb_fetch_test().
X-Git-Tag: v_3_0_18~199
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/static/git.html?a=commitdiff_plain;h=18cdf8583164db8b02d1f2664603ce64ef291f07;p=privoxy.git

Consistently use quote() in execute_dumb_fetch_test().
---

diff --git a/tools/privoxy-regression-test.pl b/tools/privoxy-regression-test.pl
index edb7307f..da849e68 100755
--- a/tools/privoxy-regression-test.pl
+++ b/tools/privoxy-regression-test.pl
@@ -7,7 +7,7 @@
 # A regression test "framework" for Privoxy. For documentation see:
 # perldoc privoxy-regression-test.pl
 #
-# $Id: privoxy-regression-test.pl,v 1.71 2011/06/23 14:02:53 fabiankeil Exp $
+# $Id: privoxy-regression-test.pl,v 1.72 2011/06/29 18:34:23 fabiankeil Exp $
 #
 # Wish list:
 #
@@ -741,13 +741,13 @@ sub execute_dumb_fetch_test ($) {
     my $expected_status_code = $test->{'expected-status-code'};
 
     if (defined $test->{method}) {
-        $curl_parameters .= '--request ' . $test->{method} . ' ';
+        $curl_parameters .= quote('--request') . quote($test->{method}) . ' ';
     }
     if ($test->{type} == TRUSTED_CGI_REQUEST) {
-        $curl_parameters .= '--referer ' . PRIVOXY_CGI_URL . ' ';
+        $curl_parameters .= quote('--referer ') . quote(PRIVOXY_CGI_URL) . ' ';
     }
 
-    $curl_parameters .= $test->{'data'};
+    $curl_parameters .= quote($test->{'data'});
 
     $buffer_ref = get_page_with_curl($curl_parameters);
     $status_code = get_status_code($buffer_ref);