Skip to content
Snippets Groups Projects
Commit 65093d82 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #44

parent e7afc98f
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ final class ReleasesController extends \TracToGitlab\Controller
$headers = [];
while (($line = strtok("\r\n")) !== false) {
$chunks = explode(':', $line, 2);
if ($chunks !== false) {
if ($chunks !== false && count($chunks) === 2) {
$headers[$chunks[0]] = $chunks[1];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment