← All changes
|
libraries/vendor/PhpSpreadsheet/Calculation/Web/Service.php
+2
-1
3.3.2
→
3.4
View file →
| @@ -42,8 +42,9 @@ | ||
| 42 | 42 | |
| 43 | 43 | // Get results from the webservice |
| 44 | 44 | $ctxArray = [ |
| 45 | 45 | 'http' => [ |
| 46 | + 'follow_location' => 0, | |
| 46 | 47 | 'user_agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36', |
| 47 | 48 | ], |
| 48 | 49 | ]; |
| 49 | 50 | if ($scheme === 'https') { |
| @@ -54,9 +55,9 @@ | ||
| 54 | 55 | if ($output === false || mb_strlen($output) > 32767) { |
| 55 | 56 | return ExcelError::VALUE(); // Output not a string or too long |
| 56 | 57 | } |
| 57 | 58 | |
| 58 | - return $output; | |
| 59 | + return ($output === '') ? Functions::NOT_YET_IMPLEMENTED : $output; | |
| 59 | 60 | } |
| 60 | 61 | |
| 61 | 62 | /** |
| 62 | 63 | * URLENCODE. |