Skip to content

Using ".js" in the page title breaks nginx #2645

@Salvora

Description

@Salvora

Describe the bug
if you create a new page with a title ending with .js, this breaks the nginx and renders the page inaccessible with "404 Not Found" errors just for this page.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to a book
  2. Create a blank page
  3. title it with something like "Node.js" (without quotes)
  4. See error

Expected behavior
Should behave normally and open the page as normal.

Screenshots
If applicable, add screenshots to help explain your problem.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): BookStack v0.31.7
  • PHP Version:
  • Hosting Method (Nginx/Apache/Docker): docker

Additional context
It is pretty serious because you are stuck with this page. You cannot access it so you cannot delete, rename or move it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions