Skip to content

Bug: Debug Bar showing before the head tag #2545

Description

@zehferrari

Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our
forum.

Describe the bug
The debug bar scripts are been inserted in the page before the <head> tag

CodeIgniter 4 version
CodeIgniter 4 RC4

Affected module(s)
Everywhere using the Debug

Expected behavior, and steps to reproduce if appropriate
Change the Debug/Toolbar.php line 396 with the code:
str_replace("<head>", $script . "<head>", $response->getBody())

from: $script . "<head>"
to: "<head>".$script

(the $script should come after the head tag)

Context

  • OS: Linux Fedora 30
  • Web server: Nginx 1.16.1
  • PHP version: 7.3.14

Activity

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

Metadata

Metadata

Assignees

Labels

bugVerified issues on the current code behavior or pull requests that will fix them

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions