summaryrefslogtreecommitdiff
path: root/modules/blog/blog.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-05-26 09:23:46 +0000
committerDries Buytaert <dries@buytaert.net>2002-05-26 09:23:46 +0000
commit4191481453a6fc68821ed91ab404f19d062c8eef (patch)
tree13f7f96b991098b30f4eb7bc1ebe302accca5676 /modules/blog/blog.module
parentad83b449f7bdf3c3dc4479e1a0e1d78cf248027b (diff)
downloadbrdo-4191481453a6fc68821ed91ab404f19d062c8eef.tar.gz
brdo-4191481453a6fc68821ed91ab404f19d062c8eef.tar.bz2
- Bugfix: just before submitting a node, one could change the content of
that node to something that would not have passed the preview pages. Patch by Revar: "If you uploaded a valid file, and filled out the form right, you will get a Submit button. The problem comes in when you choose a different file to upload, and then click Submit. The filestore_save() function cannot do proper validation and handling of the form data, as it only returns a list of what node fields to save. On error, a node entry is still created, but with only the nid field set. The user can't be forced to fix their bad entry." "Add a _form_validate() node hook to process and validate any form results. That way even on Submit, the node code would check the validity of the data, and if bad, it could drop you back to the preview screen with the current bad data warnings. Have it return an array of errors that can be passed in as $error to the _form() hook. If it returns a null array, then there's no errors, and the submit can go through."
Diffstat (limited to 'modules/blog/blog.module')
0 files changed, 0 insertions, 0 deletions