Skip to content

Commit f12d2ec

Browse files
Merge pull request #28 from ry167/master
Fixed incorrect variable name
2 parents 2385514 + 3b0c83d commit f12d2ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/VendAPI/VendRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private function _request($path, $type)
112112
$this->http_body = substr($response, $header_size);
113113

114114
if ($this->debug) {
115-
$this->curl_debug = $status;
115+
$this->curl_debug = $curl_status;
116116
$head = $foot = "\n";
117117
if (php_sapi_name() !== 'cli') {
118118
$head = '<pre>';
@@ -121,7 +121,7 @@ private function _request($path, $type)
121121
echo $head.$this->curl_debug['request_header'].$foot.
122122
($this->posted ? $head.$this->posted.$foot : '').
123123
$head.$this->http_header.$foot.
124-
$head.$this->http_body.$foot;
124+
$head.htmlentities($this->http_body).$foot;
125125
}
126126
return $this->http_body;
127127
}

0 commit comments

Comments
 (0)