projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9f36a5c
)
Consistently use quote() in execute_dumb_fetch_test().
author
Fabian Keil
<fk@fabiankeil.de>
Wed, 29 Jun 2011 18:34:38 +0000
(18:34 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Wed, 29 Jun 2011 18:34:38 +0000
(18:34 +0000)
tools/privoxy-regression-test.pl
patch
|
blob
|
history
diff --git
a/tools/privoxy-regression-test.pl
b/tools/privoxy-regression-test.pl
index
edb7307
..
da849e6
100755
(executable)
--- 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
#
# A regression test "framework" for Privoxy. For documentation see:
# perldoc privoxy-regression-test.pl
#
-# $Id: privoxy-regression-test.pl,v 1.7
1 2011/06/23 14:02:5
3 fabiankeil Exp $
+# $Id: privoxy-regression-test.pl,v 1.7
2 2011/06/29 18:34:2
3 fabiankeil Exp $
#
# Wish list:
#
#
# Wish list:
#
@@
-741,13
+741,13
@@
sub execute_dumb_fetch_test ($) {
my $expected_status_code = $test->{'expected-status-code'};
if (defined $test->{method}) {
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) {
}
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);
$buffer_ref = get_page_with_curl($curl_parameters);
$status_code = get_status_code($buffer_ref);