]> git.mxchange.org Git - friendica.git/commitdiff
Don't send blank pictures on error, fail instead.
authorMichael <heluecht@pirati.ca>
Tue, 1 Oct 2019 12:41:49 +0000 (12:41 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 1 Oct 2019 12:41:49 +0000 (12:41 +0000)
src/Module/Proxy.php

index 75a1142af6221331ce4715d3a87c7f8988a7c44f..6b40a498a0e0216108090c68663b82d27eaab9d6 100644 (file)
@@ -287,14 +287,13 @@ class Proxy extends BaseModule
        }
 
        /**
-        * @brief Output a blank image, without cache headers, in case of errors
+        * In case of an error just stop. We don't return content to avoid caching problems
         *
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        private static function responseError()
        {
-               header('Content-type: image/png');
-               echo file_get_contents('images/blank.png');
-               exit();
+               throw new \Friendica\Network\HTTPException\InternalServerErrorException();
        }
 
        /**