summaryrefslogtreecommitdiff
path: root/modules/file/file.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-31 19:34:56 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-31 19:34:56 +0000
commite0871ec49bb81adff156d4bc7cf2d9f8b50d04a0 (patch)
tree8bc1018438e0a1aa6be4faa514bef2fbbe5b632b /modules/file/file.module
parent759c2955c3d1119d1ce597677e67ffd12f4dc2c8 (diff)
downloadbrdo-e0871ec49bb81adff156d4bc7cf2d9f8b50d04a0.tar.gz
brdo-e0871ec49bb81adff156d4bc7cf2d9f8b50d04a0.tar.bz2
- Patch #671184 by Scott Reynolds, sun, effulgentsia, yched, rfay, Pasqualle: AJAX form can submit inappropriately to system/ajax after failed validation.
Diffstat (limited to 'modules/file/file.module')
-rw-r--r--modules/file/file.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/file.module b/modules/file/file.module
index 84a006dd6..b3153e647 100644
--- a/modules/file/file.module
+++ b/modules/file/file.module
@@ -239,7 +239,7 @@ function file_ajax_upload() {
// This call recreates the form relying solely on the form_state that the
// drupal_process_form() set up.
- $form = drupal_rebuild_form($form_id, $form_state, $form_build_id);
+ $form = drupal_rebuild_form($form_id, $form_state, $form);
// Retrieve the element to be rendered.
foreach ($form_parents as $parent) {