Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8fc74ce

Browse files
authored
Merge pull request #23 from bjrambo/master
#20 #22 이슈 문제 해결입니다.
2 parents ce00fea + 9b0e389 commit 8fc74ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/Nurigo/Coolsms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function curlProcess()
8585
// Set curl info
8686
curl_setopt($ch, CURLOPT_URL, $url);
8787
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // check SSL certificate
88-
curl_setopt($ch, CURLOPT_SSLVERSION, 3); // SSL protocol version (need for https connect, 3 -> SSLv3)
88+
// curl_setopt($ch, CURLOPT_SSLVERSION, 3); // SSL protocol version (need for https connect, 3 -> SSLv3)
8989
curl_setopt($ch, CURLOPT_HEADER, 0); // include the header in the output (1 = true, 0 = false)
9090
curl_setopt($ch, CURLOPT_POST, $this->is_post); // POST GET method
9191

@@ -126,7 +126,7 @@ private function setContent($options)
126126
if ($key != "text") $val = trim($val);
127127

128128
if ($key == "image") {
129-
$this->content[$key] = '@' . realpath("$val");
129+
$this->content[$key] = curl_file_create($val);
130130
} else {
131131
$this->content[$key] = sprintf("%s", $val);
132132
}

0 commit comments

Comments
 (0)