Skip to content

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

@Salvora

Description

@Salvora

Problem/Motivation

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.
The same issue also raised for the BookStack itself but apparently the problem is not the internal webserver.

BookStackApp/BookStack#2645

Expected behavior

Page should open normally/

Actual behavior

404 Error

Steps to reproduce

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

Proposed changes

Fix for webserver

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