Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if POST before saving #6

Open
ahultgren opened this issue Nov 20, 2013 · 0 comments
Open

Check if POST before saving #6

ahultgren opened this issue Nov 20, 2013 · 0 comments

Comments

@ahultgren
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant