Skip to content

Commit 8304271

Browse files
committed
fixed file permission control condition error
1 parent 51bbab1 commit 8304271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Curl/Request.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function addCookieSupport($cookieFile = null)
9191
if (null === $cookieFile) {
9292
$tempCookieFile = tempnam(sys_get_temp_dir(), "curl_request");
9393
} else {
94-
if (!is_file($cookieFile) || is_writable($cookieFile)) {
94+
if (!is_file($cookieFile) || !is_writable($cookieFile)) {
9595
throw new \ErrorException("{$cookieFile} not exist or isn't writable");
9696
}
9797
$tempCookieFile = $cookieFile;

0 commit comments

Comments
 (0)