summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-28 18:53:29 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-28 18:53:29 +0000
commita55c0d676bed0c352f515f6b629c7780fb4a9e16 (patch)
tree9d1c4f81fffb5d4bea35e742f567c7b16f414dd4
parent3b32bb6fc2c6866244c274dac52d5c7b5a054339 (diff)
downloadbrdo-a55c0d676bed0c352f515f6b629c7780fb4a9e16.tar.gz
brdo-a55c0d676bed0c352f515f6b629c7780fb4a9e16.tar.bz2
- Patch #145135 by bjaspan and stefan: xhtml compliance.
-rw-r--r--includes/form.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc
index dc2247816..861ccc492 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -76,7 +76,7 @@ function drupal_get_form($form_id) {
if (!isset($form)) {
$form_state['post'] = $_POST;
$form = call_user_func_array('drupal_retrieve_form', $args);
- $form_build_id = md5(mt_rand());
+ $form_build_id = 'form-'. md5(mt_rand());
$form['#build_id'] = $form_build_id;
drupal_prepare_form($form_id, $form, $form_state);
if (!empty($form['#cache'])) {
@@ -113,7 +113,7 @@ function drupal_get_form($form_id) {
$form = call_user_func_array('drupal_retrieve_form', $args);
// We need a new build_id for the new version of the form.
- $form_build_id = md5(mt_rand());
+ $form_build_id = 'form-'. md5(mt_rand());
$form['#build_id'] = $form_build_id;
drupal_prepare_form($form_id, $form, $form_state);