otterwiki
otterwiki copied to clipboard
Broken preview requests for pages with apostrophes
- Create a page with apostrophe, for example
TestPagewith'. - Try loading the preview.
/TestPagewith'/previewwill be requested and it will fail with a generic 'Method Not Allowed' error. - Requesting a preview with
/TestPagewith'/preview(without encoding) works.
Not sure if it's a browser/frontend problem or my nginx configuration, any ideas?
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!
Quick update: First tests with using {{ url_for(...) | urlencode }} work fine, see urlencode.
Testing here: https://testing.otterwiki.com/Issues/'Single%20Quote'%20in%20Filenames.
Released in v2.14.3.