SingleCMS icon indicating copy to clipboard operation
SingleCMS copied to clipboard

Check if POST before saving

Open ahultgren opened this issue 11 years ago • 0 comments

Currently if making some edits and saving, stuff will be saved and the url be ?action=save. If one then wants to just update the page (eg pressing enter in the address field) the content will be wiped (since there's no content sent as POST).

The solution would be to check $_SERVER['REQUEST_METHOD'] before saving. Also a redirect to itself would be nice to make it possible to update (cmd+r/f5) the page without doing another POST.

I could submit a pull request when I have time, if this project is still maintained?

ahultgren avatar Nov 20 '13 10:11 ahultgren