forked from skrysm/blogtext
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- This is likely (or is related to) Percent character previews 403 Forbidden skrysm/blogtext#33
- See also Previewing/saving content with ${ produces a "403 Forbidden" error skrysm/blogtext#37
- WordPress 6.6.2
- PHP 8.1.29
- BlogText 0.9.10
Steps to reproduce
-
Begin a new post
-
Add the text:
file:///C:/Program%20Files
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels