Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php single quote issue #1431

Closed
CoenraadS opened this issue May 28, 2018 · 2 comments
Closed

php single quote issue #1431

CoenraadS opened this issue May 28, 2018 · 2 comments

Comments

@CoenraadS
Copy link

CoenraadS commented May 28, 2018

if ($sysType == '') {
  return $c['view']->render($response->withStatus(404), '/error/404.php', [
    "myMagic" => "Let's roll"
  ]);
} else {
  return $c['response']
        ->withStatus(404)
        ->withHeader('Content-Type', 'text/html')
                                                ^ no punctuation token
        ->write('Page not found!');
}

Note the single quote in Let's roll affects 'text/html') later on

Let's roll
image

Lets roll (no apostrophe)
image

@RunDevelopment
Copy link
Member

It seems like this bug is caused by #1492.

@RunDevelopment
Copy link
Member

Fixed by #2032.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants