otterwiki icon indicating copy to clipboard operation
otterwiki copied to clipboard

Broken preview requests for pages with apostrophes

Open deseven opened this issue 1 month ago • 1 comments

  1. Create a page with apostrophe, for example TestPagewith'.
  2. Try loading the preview. /TestPagewith'/preview will be requested and it will fail with a generic 'Method Not Allowed' error.
  3. Requesting a preview with /TestPagewith'/preview (without encoding) works.

Not sure if it's a browser/frontend problem or my nginx configuration, any ideas?

deseven avatar Nov 14 '25 16:11 deseven

Hey @deseven, thanks for reporting this. Looks like no one tried to add a ' to a pagename ...yet. I can reproduce the error, so it's not you. Will look into it!

redimp avatar Nov 14 '25 17:11 redimp

Quick update: First tests with using {{ url_for(...) | urlencode }} work fine, see urlencode.

Testing here: https://testing.otterwiki.com/Issues/'Single%20Quote'%20in%20Filenames.

redimp avatar Nov 18 '25 22:11 redimp

Released in v2.14.3.

redimp avatar Nov 29 '25 11:11 redimp