Skip to content

"403 Forbidden" produced by file:///C:/Program%20Files #21

@spiralofhope

Description

@spiralofhope

  • WordPress 6.6.2
  • PHP 8.1.29
  • BlogText 0.9.10

Steps to reproduce

  1. Begin a new post

  2. Add the text:

file:///C:/Program%20Files
  1. Click "preview" on the right-hand side

A new tab opens, with the message:

403
Forbidden

Access to this resource on the server is denied!

Workaround 1

Replace the colon character : with the Unicode character U+A789

file://
=>
file꞉//

Workaround 2

I've seen the above colon replacement not work with this example:

Location: jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/aboutNetError.xhtml
=>
Location: jar:file:///C:/Program%20Files%20(x86)/Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/aboutNetError.xhtml

The solution in this case was replacing the first occurrence of the percent character % with the Unicode character U+FF05

Notes

  • This precise message is likely produced by my hosting and could be different for others.
  • Other versions of BlogText have not been tested

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions