Skip to content

Warning: Header may not contain more than a single header, new line detected #6

@christopheg

Description

@christopheg

When outputting an error, we show the exception message in the header:

	public function output() {
		header($_SERVER["SERVER_PROTOCOL"] . ' ' . $this->getCode() . ' ' . $this->getMessage(), true);

in lib/Skeleton/Application/Api/Exception.php

Can you please make sure newlines are removed from the exception and the length of the message is limited to the maximum length of a header line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions