{"issue":{"created_at":"2011-11-29T06:57:03Z","state":"closed","updated_at":"2011-11-29T06:57:11Z","user":{"gravatar_id":"02c8f3c5cd56551b510e61ab671abc87","id":1224532,"url":"https://api.github.com/users/jantheofel","avatar_url":"https://secure.gravatar.com/avatar/02c8f3c5cd56551b510e61ab671abc87?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"jantheofel"},"comments":6,"body":"In der TYPOlight Version 2.7.2 scheint folgender Code in der cron.php hinzugekommen zu sein:\n\n```\n// Output a transparent gif\nheader('Cache-Control: no-cache');\nheader('Content-type: image/gif');\nheader('Content-length: 43');\necho base64_decode('R0lG...');\n```\n\nLeider wird dieser Code auch ausgeführt, wenn die cron.php nicht über einen Webseitenaufruf gestartet sondern als echter Cronjob ausgeführt wird. Dabei wird dann eine recht seltsame Meldung ausgegeben.\n\nEine Abfrage wie etwa \n\n```\nif(!defined($_SERVER['REMOTE_ADDR'])) { ... } \n```\n\num die Ausgabe herum sollte das Problem schon beheben, weil diese Umgebungsvariable beim lokalen Zugriff nicht gesetzt ist.\n\n--- _Originally created on July 15th, 2009, at 06:51pm (ID 883)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2379361,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/backend"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"}],"number":883,"title":"cron.php should have option to disable returning a GIF image","closed_at":"2011-11-29T06:57:11Z","html_url":"https://github.com/contao/test/issues/883","url":"https://api.github.com/repos/contao/test/issues/883","milestone":null},"action":"created","comment":{"created_at":"2011-11-29T06:57:09Z","updated_at":"2011-11-29T06:57:09Z","user":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"body":"Das Problem lässt sich durch ein einfaches >/dev/null beheben.\n\n```\n* ** ** ** * php /typolight/cron.php >/dev/null 2>/dev/null\n```\n\n--- _Originally created on September 24th, 2009, at 09:55pm_","id":2918135,"url":"https://api.github.com/repos/contao/test/issues/comments/2918135"}}