]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/HTTPSignature.php
spelling: calendar
[friendica.git] / src / Util / HTTPSignature.php
index f082fe32f79f7eb3f9f905a2f6bca2d22050b28e..1d57f5ea8095ff791750f6eec2e2ff875d715735 100644 (file)
@@ -422,7 +422,12 @@ class HTTPSignature
         */
        public static function fetch(string $request, int $uid): array
        {
-               $curlResult = self::fetchRaw($request, $uid);
+               try {
+                       $curlResult = self::fetchRaw($request, $uid);
+               } catch (\Exception $exception) {
+                       Logger::notice('Error fetching url', ['url' => $request, 'exception' => $exception]);
+                       return [];
+               }
 
                if (empty($curlResult)) {
                        return [];
@@ -622,7 +627,7 @@ class HTTPSignature
                }
 
                if (empty($algorithm)) {
-                       Logger::info('No alagorithm');
+                       Logger::info('No algorithm');
                        return false;
                }